From 87abe427680f0b6a7eefafaba239336484da2768 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 29 May 2024 12:28:30 +0200 Subject: ... --- overlays/worktime/worktime/__main__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py index dddbb250..821d2cdd 100755 --- a/overlays/worktime/worktime/__main__.py +++ b/overlays/worktime/worktime/__main__.py @@ -2,9 +2,9 @@ import requests from requests.exceptions import HTTPError from requests.auth import HTTPBasicAuth from datetime import * -from xdg import (BaseDirectory) +from xdg import BaseDirectory import toml -from uritools import uricompose +from uritools import (uricompose) from dateutil.easter import * from dateutil.tz import * @@ -127,9 +127,9 @@ class TogglAPI(object): pass entries = list() - params = { 'since': (req_start - timedelta(days=1)).astimezone(timezone.utc).isoformat(), - 'until': (req_end + timedelta(days=1)).astimezone(timezone.utc).isoformat(), - 'rounding': rounding, + params = { 'since': (req_start - timedelta(days=1)).date().isoformat(), + 'until': (req_end + timedelta(days=1)).date().isoformat(), + 'rounding': 'yes' if rounding else 'no', 'billable': 'yes' } if client_ids is not None: -- cgit v1.2.3