Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
413a89d7
Commit
413a89d7
authored
1 year ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
fix: imports
parent
b3cb95d2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/app/sane_url.py
+2
-2
2 additions, 2 deletions
backend/app/sane_url.py
with
2 additions
and
2 deletions
backend/app/sane_url.py
+
2
−
2
View file @
413a89d7
...
...
@@ -12,7 +12,7 @@ from pydantic import BaseModel
from
.config
import
SXPLR_EBRAINS_IAM_SA_CLIENT_ID
,
SXPLR_EBRAINS_IAM_SA_CLIENT_SECRET
,
SXPLR_BUCKET_NAME
,
HOST_PATHNAME
from
.const
import
EBRAINS_IAM_DISCOVERY_URL
from
._store
import
DataproxyStore
from
.user
import
get_user
from
.user
import
get_user
_from_request
router
=
APIRouter
()
...
...
@@ -77,7 +77,7 @@ class SaneUrlDPStore(DataproxyStore):
return
super
().
_get_bucket
()
def
_prepare_aux
(
self
,
request
:
Optional
[
Request
]
=
None
):
user
=
get_user
(
request
)
if
request
else
None
user
=
get_user
_from_request
(
request
)
if
request
else
None
return
{
"
userId
"
:
user
.
get
(
"
id
"
)
if
user
else
None
,
"
expiry
"
:
None
if
user
else
SaneUrlDPStore
.
GetTimeMs
()
+
(
self
.
expiry_s
*
1e3
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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