Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
esap-userprofile-python-client
Manage
Activity
Members
Labels
Plan
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
esap-userprofile-python-client
Commits
0c8232fe
Commit
0c8232fe
authored
Nov 19, 2021
by
Klaas Kliffen
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong variable to count padding for
parent
4958c80c
Branches
Branches containing commit
No related tags found
1 merge request
!8
SDC-307 Cern dlaas notebook
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
shopping_client/shopping_client.py
+1
-1
1 addition, 1 deletion
shopping_client/shopping_client.py
with
1 addition
and
1 deletion
shopping_client/shopping_client.py
+
1
−
1
View file @
0c8232fe
...
@@ -105,7 +105,7 @@ class shopping_client:
...
@@ -105,7 +105,7 @@ class shopping_client:
try
:
try
:
data
=
token
.
split
(
"
.
"
)[
1
]
data
=
token
.
split
(
"
.
"
)[
1
]
padded
=
data
+
"
=
"
*
divmod
(
len
(
token
),
4
)[
1
]
padded
=
data
+
"
=
"
*
divmod
(
len
(
data
),
4
)[
1
]
payload
=
json
.
loads
(
base64
.
urlsafe_b64decode
(
padded
))
payload
=
json
.
loads
(
base64
.
urlsafe_b64decode
(
padded
))
return
payload
[
"
exp
"
]
>
int
(
time
.
time
())
+
10
return
payload
[
"
exp
"
]
>
int
(
time
.
time
())
+
10
except
KeyError
:
except
KeyError
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment