Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikweb
Commits
55f8980d
Commit
55f8980d
authored
Aug 31, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: tabs & spaces
parent
e76819c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
panikweb/views.py
panikweb/views.py
+6
-6
No files found.
panikweb/views.py
View file @
55f8980d
...
@@ -429,7 +429,7 @@ class Listen(TemplateView):
...
@@ -429,7 +429,7 @@ class Listen(TemplateView):
context
[
'sectionName'
]
=
"Listen"
context
[
'sectionName'
]
=
"Listen"
context
[
'sounds'
]
=
SoundFile
.
objects
.
all
()[:
15
]
context
[
'sounds'
]
=
SoundFile
.
objects
.
all
()[:
15
]
listenable
=
[]
listenable
=
[]
x
=
0
x
=
0
for
episode
in
Episode
.
objects
.
all
().
extra
(
select
=
{
for
episode
in
Episode
.
objects
.
all
().
extra
(
select
=
{
'first_diffusion'
:
'emissions_diffusion.datetime'
,
'first_diffusion'
:
'emissions_diffusion.datetime'
,
},
},
...
@@ -440,13 +440,13 @@ class Listen(TemplateView):
...
@@ -440,13 +440,13 @@ class Listen(TemplateView):
tables
=
[
'emissions_diffusion'
],
tables
=
[
'emissions_diffusion'
],
).
order_by
(
'-first_diffusion'
):
).
order_by
(
'-first_diffusion'
):
if
x
>=
60
:
if
x
>=
60
:
break
break
elif
episode
.
main_sound
is
None
:
elif
episode
.
main_sound
is
None
:
continue
continue
else
:
else
:
x
+=
1
x
+=
1
listenable
.
append
(
episode
)
listenable
.
append
(
episode
)
context
[
'episodes'
]
=
listenable
context
[
'episodes'
]
=
listenable
return
context
return
context
...
...
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