always: SyntaxError: invalid token
tbrodbeck opened this issue · comments
Hi!
No matter what I enter after the toggl
command I always get this error message:
Traceback (most recent call last):
File "/usr/local/bin/toggl", line 5, in <module>
from toggl.main import toggl_app
File "/usr/local/lib/python3.7/site-packages/toggl/main.py", line 57
start = arrow.get(api.time_entries.get(start_date=arrow.get(1970, 01, 01).isoformat())[-1]['start'])
^
SyntaxError: invalid token
Am I doing sth wrong or is this broken?
This is Python's Syntax Error and not related to toggl 😉 My guess is that it does not like the leading zeros 😉
Edit: Sorry jumping to quick conclusions 😅
Okay fair enough, so how to fix that then? :D On what python version is this tested so far? I am using Python 3.7.6
Are you using this as CLI or API? Is
start = arrow.get(api.time_entries.get(start_date=arrow.get(1970, 01, 01).isoformat())[-1]['start'])
your code? Because it does not look like part of this tool and if so then it is indeed problem with leading zeros in your code...
I am using the CLI
How did you install it?
pip install togglCli
?
Oh I am sorry I somehow got confused. Probably installed pip install toggl
instead of yours. Got it working now hahaha sorry sorry
On another topic :D (I can literally just open another one if you prefer, but now Im scared that I just ask a dumb question again ^^ )
Is there a way to show the sum of the current day with this tool?
toggle ls
is nice. But I would like to have it summed up like the toggle desktop app does for the current day.
Glad it was resolved :-)
Hehe, no worries. Yeah for that please create new Issue ;-) I don't have much time atm, so not sure when I would get around to implement that, but if you would like you are free to submit PR with the functionality. After review I would accept it ;-)