Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Nov 29, 2024
1 parent c15c540 commit 4e9058d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keel_telegram_bot/bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,13 @@ async def update_messages(self):
approvals = self._api_client.get_approvals()

for approval in approvals:

if approval.archived or approval.rejected:
# TODO: avoid updating archived (accepted) or rejected items
# to reduce the number of API calls to the Telegram API
pass
#continue

approval_id = approval.id
approval_identifier = approval.identifier
key = f"{approval_id}_{approval_identifier}"
Expand Down

0 comments on commit 4e9058d

Please sign in to comment.