Fix task to pull the correct user

This commit is contained in:
2010-11-10 11:41:09 +00:00
parent 0d168cb461
commit 5d4a2707a9

View File

@@ -16,6 +16,8 @@ signals.post_delete.connect(eveapi_deleted, sender=EVEAccount)
def update_user_access(user): def update_user_access(user):
""" Process all corporate and alliance entries and correct access groups """ """ Process all corporate and alliance entries and correct access groups """
user = User.objects.get(id=user)
# Create a list of all Corp and Alliance groups # Create a list of all Corp and Alliance groups
corpgroups = [] corpgroups = []
for corp in EVEPlayerCorporation.objects.filter(group__isnull=False): for corp in EVEPlayerCorporation.objects.filter(group__isnull=False):