Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-05-01 16:14:23 +02:00
parent 0fa4c78e53
commit 3debaf7973
4 changed files with 5 additions and 5 deletions

View File

@@ -221,10 +221,10 @@ def get_nk_workout_list(user,fake=False,after=0,before=0):
return custom_exception_handler(401,s)
else:
# ready to fetch. Hurray
if not before:
if not before: # pragma: no cover
before = arrow.now()+timedelta(days=1)
before = str(int(before.timestamp())*1000)
if not after:
if not after: # pragma: no cover
after = arrow.now()-timedelta(days=7)
after = str(int(after.timestamp())*1000)
authorizationstring = str('Bearer ' + r.nktoken)