Commit 55f8980d authored by fred's avatar fred

style: tabs & spaces

parent e76819c5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment