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
b64bdcd4
Commit
b64bdcd4
authored
May 05, 2017
by
Administrator
Browse files
Use the attributes of time actually existing
parent
7a56af29
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/database.py
View file @
b64bdcd4
...
...
@@ -258,7 +258,7 @@ class Protocol(DatabaseModel):
def
get_datetime
(
self
):
time
=
self
.
get_time
()
return
datetime
(
self
.
date
.
year
,
self
.
date
.
month
,
self
.
date
.
day
,
time
.
usual_time
.
hour
,
time
.
usual_
time
.
minute
)
return
datetime
(
self
.
date
.
year
,
self
.
date
.
month
,
self
.
date
.
day
,
time
.
hour
,
time
.
minute
)
def
has_nonplanned_tops
(
self
):
return
len
([
top
for
top
in
self
.
tops
if
not
top
.
planned
])
>
0
...
...
Write
Preview
Markdown
is supported
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