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
a85e279e
Commit
a85e279e
authored
Mar 15, 2017
by
Robin Sonnabend
Browse files
Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3
parents
c7097877
2ef6e50b
Changes
1
Show whitespace changes
Inline
Side-by-side
models/database.py
View file @
a85e279e
...
...
@@ -226,14 +226,13 @@ class Protocol(DatabaseModel):
return
"Protokoll:{}-{:%Y-%m-%d}"
.
format
(
self
.
protocoltype
.
short_name
,
self
.
date
)
def
get_etherpad_link
(
self
):
if
self
.
pad_identifier
is
not
None
:
return
self
.
pad_identifier
if
self
.
pad_identifier
is
None
:
identifier
=
self
.
get_identifier
()
if
self
.
protocoltype
.
non_reproducible_pad_links
:
identifier
=
"{}-{}"
.
format
(
identifier
,
str
(
uuid4
()))
self
.
pad_identifier
=
identifier
db
.
session
.
commit
()
return
get_etherpad_url
(
identifier
)
return
get_etherpad_url
(
self
.
pad_
identifier
)
def
get_datetime
(
self
):
return
datetime
(
self
.
date
.
year
,
self
.
date
.
month
,
self
.
date
.
day
,
self
.
protocoltype
.
usual_time
.
hour
,
self
.
protocoltype
.
usual_time
.
minute
)
...
...
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