adding date filter to NK import
This commit is contained in:
@@ -112,13 +112,13 @@ def nk_open(user):
|
||||
|
||||
return thetoken
|
||||
|
||||
def get_nk_workouts(rower, do_async=True):
|
||||
def get_nk_workouts(rower, do_async=True,before=0,after=0):
|
||||
try:
|
||||
thetoken = nk_open(rower.user)
|
||||
except NoTokenError: # pragma: no cover
|
||||
return 0
|
||||
|
||||
res = get_nk_workout_list(rower.user)
|
||||
res = get_nk_workout_list(rower.user,before=before,after=after)
|
||||
|
||||
if res.status_code != 200: # pragma: no cover
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user