Skip to content

Commit

Permalink
task fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed May 25, 2024
1 parent e0a8a7b commit 1c77fca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ntfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ def _prune_photos_cache(self):
# prune old photos from the shared dict,
# using input_queue notifications as a periodic ticker:
utcnow = datetime.datetime.now(datetime.timezone.utc)
keys_to_prune = [
k for k, v in self._records.items() if v.expires_at < utcnow
]
keys_to_prune = [k for k, v in self._records.items() if v.expires_at < utcnow]
for k in keys_to_prune:
del self._records[k]

Expand Down

0 comments on commit 1c77fca

Please sign in to comment.