Skip to content

Commit

Permalink
fix(toggle): toggle api v9
Browse files Browse the repository at this point in the history
  • Loading branch information
josehbez committed Sep 19, 2024
1 parent 05dac1c commit 3f1a4fa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,7 @@ assets/how-does-work.xcf
assets/gitlab-logo2.png
gnome-pomodoro-tracking.conf
Pipfile
.pypirc
.pypirc
bin
lib64
pyvenv.cfg
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) José Hernández <dev@josehbez.com>
Copyright (c) José Hernández <josehbez@outlook.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -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.
SOFTWARE.
4 changes: 2 additions & 2 deletions gnome_pomodoro_tracking/toggl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3f1a4fa

Please sign in to comment.