Skip to content

Commit c8d5800

Browse files
authored
Revert "transformed ISO Time into POSIX timestamp (#80)" (#82)
This reverts commit c475324.
1 parent c475324 commit c8d5800

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytr/utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ async def _get_timeline_details(self, num_torequest, max_age_timestamp=0):
351351
action = event.get('action')
352352
# icon = event.get('icon')
353353
msg = ''
354-
timestamp = timestamp = datetime.fromisoformat(event['timestamp']).timestamp()
355-
if max_age_timestamp != 0 and timestamp > max_age_timestamp:
354+
if max_age_timestamp != 0 and event['timestamp'] > max_age_timestamp:
356355
msg += 'Skip: too old'
357356
# elif icon is None:
358357
# pass

0 commit comments

Comments
 (0)