Further integration work with tagging

This commit is contained in:
2011-07-28 14:22:07 +01:00
parent 62140ac855
commit 9a457e6c40
4 changed files with 222 additions and 1 deletions

View File

@@ -107,3 +107,11 @@ def update_service_groups(user_id):
except:
print "Error updating %s %s" % (service.service, service.service_uid)
pass
@task(ignore_result=True)
def update_reddit_tag():
for sobj in SSOUser.objects.filter(tag_reddit_accounts=True)
if sobj.primary_character and sobj.user.redditaccount_set.count():
for redditacc in sobj.user.redditaccount_set.all():
update_user_flair.delay(redditacc.username, sobj.primary_character.name)