Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
961de290
Commit
961de290
authored
Jul 21, 2020
by
Markus Scheidgen
Browse files
Fixt upload page url in post processing notification email.
parent
13c50b35
Pipeline
#79046
passed with stages
in 26 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/config.py
View file @
961de290
...
...
@@ -169,10 +169,14 @@ def api_url(ssl: bool = True):
services
.
api_base_path
.
strip
(
'/'
))
def
gui_url
():
def
gui_url
(
page
:
str
=
None
):
base
=
api_url
(
True
)[:
-
3
]
if
base
.
endswith
(
'/'
):
base
=
base
[:
-
1
]
if
page
is
not
None
:
return
'%s/gui/%s'
%
(
base
,
page
)
return
'%s/gui'
%
base
...
...
nomad/processing/data.py
View file @
961de290
...
...
@@ -1075,7 +1075,7 @@ class Upload(Proc):
''
,
'your data %suploaded at %s has completed processing.'
%
(
'"%s" '
%
self
.
name
if
self
.
name
else
''
,
self
.
upload_time
.
isoformat
()),
# pylint: disable=no-member
'You can review your data on your upload page: %s'
%
config
.
gui_url
(),
'You can review your data on your upload page: %s'
%
config
.
gui_url
(
page
=
'uploads'
),
''
,
'If you encouter any issues with your upload, please let us know and replay to this email.'
,
''
,
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment