Skip to content

Commit 77fff1e

Browse files
authored
Merge pull request #232 from Scanerr-io/dev
Dev
2 parents 6f26122 + 6916ffe commit 77fff1e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/api/utils/imager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def scan_vrt(self, driver: object=None) -> list:
267267
break
268268

269269
# scroll single frame if not first frame and not auto_height
270-
if index != 0 and not self.scan.configs.get('auto_height', True):
270+
if index != 0:
271271
driver.execute_script("window.scrollBy(0, document.documentElement.clientHeight);")
272272
time.sleep(int(self.scan.configs.get('min_wait_time', 10)))
273273

app/api/v1/auth/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def jwt_login(*, user: object) -> str:
288288

289289
# get JWTs for user
290290
refresh = RefreshToken.for_user(user)
291-
access = str(refresh.access_token)
291+
token = str(refresh.access_token)
292292
refresh = str(refresh)
293293

294294
# create API token if none exists
@@ -307,7 +307,7 @@ def jwt_login(*, user: object) -> str:
307307

308308
# building params for redirect
309309
param_string = str(
310-
'?access='+str(access)+'&refresh='+str(refresh)+
310+
'?token='+str(token)+'&refresh='+str(refresh)+
311311
'&username='+str(user.username)+'&id='+str(user.id)+
312312
'&email='+str(user.email)+'&is_active='+str(is_active)+
313313
'&created='+str(user.date_joined)+'&updated='+str(timezone.now())+

0 commit comments

Comments
 (0)