diff --git a/.gitignore b/.gitignore index ac7a59c..f690b66 100644 --- a/.gitignore +++ b/.gitignore @@ -133,4 +133,7 @@ assets/how-does-work.xcf assets/gitlab-logo2.png gnome-pomodoro-tracking.conf Pipfile -.pypirc \ No newline at end of file +.pypirc +bin +lib64 +pyvenv.cfg diff --git a/LICENSE b/LICENSE index c63cf0c..609a819 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) José Hernández +Copyright (c) José Hernández Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/gnome_pomodoro_tracking/toggl.py b/gnome_pomodoro_tracking/toggl.py index 28970f2..498e3eb 100644 --- a/gnome_pomodoro_tracking/toggl.py +++ b/gnome_pomodoro_tracking/toggl.py @@ -8,7 +8,7 @@ class Toggl(Plugin): name = "toggl" - url = "https://api.track.toggl.com/api/v8" + url = "https://api.track.toggl.com/api/v9" token = None def __init__(self, gpt): @@ -46,7 +46,7 @@ def auth(self): req = self.rget(join_url(self.url, "me" ), auth=self.http_auth()) if req.ok: data = req.json() - if data['data']['id']: + if data['id']: return True else: raise Exception(req.text) diff --git a/setup.py b/setup.py index cb71020..6ee78ee 100644 --- a/setup.py +++ b/setup.py @@ -47,10 +47,10 @@ def run(self): setup( name="gnome-pomodoro-tracking", - version="4.0.3", + version="4.1.0", url="https://github.com/gnome-pomodoro/gnome-pomodoro-tracking", author="Jose Hbez", - author_email="dev@josehbez.com", + author_email="josehbez@outlook.com", description="Connect your Pomodoros to popular time tracking services.", long_description=long_description, long_description_content_type='text/markdown',