From 982e95db1630d3254dfdd519c394d31c86f8a7e8 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Wed, 25 Oct 2023 20:47:14 +0200 Subject: [PATCH] fix: new offers were not sent (#277) --- src/lootscraper/telegrambot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lootscraper/telegrambot.py b/src/lootscraper/telegrambot.py index ca279977..85afad19 100644 --- a/src/lootscraper/telegrambot.py +++ b/src/lootscraper/telegrambot.py @@ -1101,10 +1101,10 @@ async def send_new_offers(self, user: User) -> bool: for offer in offers: if ( - Offer.type == subscription.type - and Offer.source == subscription.source - and Offer.duration == subscription.duration - and Offer.id > subscription.last_offer_id + offer.type == subscription.type + and offer.source == subscription.source + and offer.duration == subscription.duration + and offer.id > subscription.last_offer_id ): filtered_offers.append(offer)