Permalink
Browse files

[fix] country listing by date

  • Loading branch information...
1 parent 7455c77 commit 66ba9aa2b1618803b318fe719acd2c26ee9d2946 stef committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 parltrack/views/views.py
View
@@ -54,7 +54,7 @@ def mepRanking(date,query={}):
score=0
ranks=[]
# get group rank
- for group in mep['Groups']:
+ for group in mep.get('Groups',[]):
if not 'end' in group or (group['start']<=date and group['end']>=date):
score=group_positions[group['role']]
if not 'groupid' in group:

0 comments on commit 66ba9aa

Please sign in to comment.