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
radiopanik
panikweb
Commits
55f8980d
Commit
55f8980d
authored
Aug 31, 2013
by
fred
Browse files
style: tabs & spaces
parent
e76819c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
55f8980d
...
...
@@ -429,7 +429,7 @@ class Listen(TemplateView):
context
[
'sectionName'
]
=
"Listen"
context
[
'sounds'
]
=
SoundFile
.
objects
.
all
()[:
15
]
listenable
=
[]
x
=
0
x
=
0
for
episode
in
Episode
.
objects
.
all
().
extra
(
select
=
{
'first_diffusion'
:
'emissions_diffusion.datetime'
,
},
...
...
@@ -440,13 +440,13 @@ class Listen(TemplateView):
tables
=
[
'emissions_diffusion'
],
).
order_by
(
'-first_diffusion'
):
if
x
>=
60
:
break
break
elif
episode
.
main_sound
is
None
:
continue
continue
else
:
x
+=
1
listenable
.
append
(
episode
)
x
+=
1
listenable
.
append
(
episode
)
context
[
'episodes'
]
=
listenable
return
context
...
...
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