Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
953f04fe
Commit
953f04fe
authored
Mar 09, 2017
by
Robin Sonnabend
Browse files
Always prefix etherpad links with the default identifier
parent
1c2c74f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/database.py
View file @
953f04fe
...
...
@@ -230,7 +230,7 @@ class Protocol(DatabaseModel):
return
self
.
pad_identifier
identifier
=
self
.
get_identifier
()
if
self
.
protocoltype
.
non_reproducible_pad_links
:
identifier
=
str
(
uuid4
())
identifier
=
"{}-{}"
.
format
(
identifier
,
str
(
uuid4
())
)
self
.
pad_identifier
=
identifier
db
.
session
.
commit
()
return
get_etherpad_url
(
identifier
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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