Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
STWonderFool authored Apr 7, 2024
1 parent 7b00173 commit 5bf06a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
from traceback import format_exc
from urllib.parse import quote

from MySteam.login import LoginExecutor
from MySteam.steam import get_sent_offers
from bs4 import BeautifulSoup
from notifiers import get_notifier
from printy import printy
from requests import get, post
from requests.utils import dict_from_cookiejar
from steampy.confirmation import ConfirmationExecutor
from MySteam.login import LoginExecutor
from MySteam.steam import get_sent_offers

stop_flag = False

Expand Down Expand Up @@ -540,7 +540,7 @@ def cancel_all_offers_older_10_min(self):
message(self.login, 'r', 'Error getting sent offers list')
continue
for trade_id in offers:
trade_message = offers[trade_id]
trade_message = offers[trade_id]['trade_message']
if trade_message in self.sent_offers_messages and time() - self.sent_offers_messages[trade_message] > 600:
try:
self.cancel_trade_offer(trade_id)
Expand Down

0 comments on commit 5bf06a2

Please sign in to comment.