Forgot the .iteritems() here.

This commit is contained in:
Ralph Bean 2013-09-04 18:17:13 +00:00
parent e6b8eab5fc
commit a2c7e24745

View file

@ -59,7 +59,7 @@ def get_fas_groupings(fas_credentials, lookup, **config):
packager_id = None packager_id = None
for user in mega_list: for user in mega_list:
# This is the main check. # This is the main check.
for group_name, badge_id in lookup: for group_name, badge_id in lookup.iteritems():
if any([group.name == group_name for group in user.memberships]): if any([group.name == group_name for group in user.memberships]):
results[group_name] = results.get(group_name, []) + [user] results[group_name] = results.get(group_name, []) + [user]