Private
Public Access
1
0

updated scraoper

This commit is contained in:
Sander Roosendaal
2023-03-13 19:41:41 +01:00
parent 2f41551df2
commit 3d81244c31
5 changed files with 17 additions and 4 deletions

View File

@@ -14,6 +14,6 @@ importsources = {
'nk': NKIntegration,
'tp':TPIntegration,
'rp3':RP3Integration,
'polar': PolarIntegration
'polar': PolarIntegration,
}

View File

@@ -269,7 +269,7 @@ class NKIntegration(SyncIntegration):
def open(self, *args, **kwargs) -> str:
r = self.rower
if (r.nktoken == '') or (r.nktoken is None): # pragma: no cover
if not r.nktoken: # pragma: no cover
raise NoTokenError("User has no token")
else:
if (timezone.now() > r.nktokenexpirydate):