Skip to content

Commit

Permalink
Merge pull request #1 from eduardoklosowski/estatisticas
Browse files Browse the repository at this point in the history
Correção das estatísticas quando a temporado não está definida
  • Loading branch information
eduardoklosowski authored Oct 2, 2016
2 parents 3fd8170 + 84b106a commit ecdfa37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ergoanimes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def get_context_data(self, **kwargs):
context['time_down'] = time_down / 1440.
context['note'] = sum_note / have_note
context['seasons'] = sorted(((season, sorted(genres.items(), key=lambda x: x[1], reverse=True))
for season, genres in seasons.items()), reverse=True)
for season, genres in seasons.items() if season is not None), reverse=True)
return context


Expand Down

0 comments on commit ecdfa37

Please sign in to comment.