Just show what is there to show rather than fill up the empty space
with...more empty space!
% endif
+% if len(recent_games) > 0:
<div class="row">
<div class="span12">
<h3>Most Recent Games</h3>
</table>
</div>
</div>
+% endif
% endif
leaderboard_count = 10
recent_games_count = 20
- for i in range(recent_games_count-len(mapinfo_data['recent_games'])):
- mapinfo_data['recent_games'].append(('-', '-', '-', '-'))
-
for i in range(leaderboard_count-len(mapinfo_data['top_scorers'])):
mapinfo_data['top_scorers'].append(('-', '-', '-'))