Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
b56b203f
Commit
b56b203f
authored
Aug 30, 2013
by
fred
Browse files
add a fake get_duration() method to nonstop slots
parent
4756b493
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/emissions/utils.py
View file @
b56b203f
...
...
@@ -132,6 +132,10 @@ def period_program(date_start, date_end):
def
__repr__
(
self
):
return
repr
(
self
.
label
)
def
get_duration
(
self
):
# fake duration
return
0
first_day_start
=
datetime
(
*
date_start
.
replace
(
hour
=
6
,
minute
=
0
).
timetuple
()[:
5
])
last_day_end
=
datetime
(
*
date_end
.
replace
(
hour
=
5
,
minute
=
0
).
timetuple
()[:
5
])
...
...
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