Skip to content

Commit

Permalink
fix: Filter datacenters correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Jun 16, 2024
1 parent 10d44ae commit e380aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hetznerbot/helper/hetzner.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def check_offer_for_subscriber(session, subscriber):
)

if subscriber.datacenter is not None:
query = query.filter(Offer.datacenter != subscriber.datacenter)
query = query.filter(Offer.datacenter.startswith(subscriber.datacenter))

if subscriber.ipv4:
query = query.filter(Offer.ipv4.is_(True))
Expand Down

0 comments on commit e380aa1

Please sign in to comment.