Skip to content

Commit

Permalink
transformed ISO Time into POSIX timestamp (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
BjBe82 authored Jul 2, 2024
1 parent 97dca96 commit c475324
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ async def _get_timeline_details(self, num_torequest, max_age_timestamp=0):
action = event.get('action')
# icon = event.get('icon')
msg = ''
if max_age_timestamp != 0 and event['timestamp'] > max_age_timestamp:
timestamp = timestamp = datetime.fromisoformat(event['timestamp']).timestamp()
if max_age_timestamp != 0 and timestamp > max_age_timestamp:
msg += 'Skip: too old'
# elif icon is None:
# pass
Expand Down

0 comments on commit c475324

Please sign in to comment.