Commit 55f8980d authored by fred's avatar fred

style: tabs & spaces

parent e76819c5
...@@ -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
......
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