pytr-org / pytr

Use TradeRepublic in terminal and mass download all documents
https://pypi.org/project/pytr/
MIT License
357 stars 59 forks source link

TypeError for timestamp #78

Closed HSGEV closed 3 days ago

HSGEV commented 1 week ago

Description of the bug Traceback (most recent call last): File "/Users/XXXX/.local/bin/pytr", line 8, in sys.exit(main()) ^^^^^^ File "/Users/XXXXXX/.local/pipx/venvs/pytr/lib/python3.12/site-packages/pytr/main.py", line 211, in main asyncio.get_event_loop().run_until_complete(dl.dl_loop()) File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/Users/XXXXX/.local/pipx/venvs/pytr/lib/python3.12/site-packages/pytr/dl.py", line 80, in dl_loop await self.tl.get_next_timeline_activity_log(response, max_age_timestamp=self.since_timestamp) File "/Users/XXXXXX/.local/pipx/venvs/pytr/lib/python3.12/site-packages/pytr/utils.py", line 332, in get_next_timeline_activity_log await self._get_timeline_details(5, max_age_timestamp=max_age_timestamp) File "/Users/XXXX/.local/pipx/venvs/pytr/lib/python3.12/site-packages/pytr/utils.py", line 354, in _get_timeline_details if max_age_timestamp != 0 and event['timestamp'] > max_age_timestamp: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'str' and 'float'

To Reproduce Start Sync

Environment

Katzmann1983 commented 3 days ago

Fixed. Thank you