mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Logic fix on users celerytask
This commit is contained in:
parent
ce68477608
commit
551cf01b44
@ -168,8 +168,7 @@ def run_api_refresh():
|
|||||||
if api_key_pairs:
|
if api_key_pairs:
|
||||||
valid_key = False
|
valid_key = False
|
||||||
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
||||||
# We do a check on the authservice info to insure that we shoud run the check
|
|
||||||
# No point in running the check on people who arn't on services
|
|
||||||
print 'Running update on user: ' + user.username
|
print 'Running update on user: ' + user.username
|
||||||
if authserviceinfo.main_char_id:
|
if authserviceinfo.main_char_id:
|
||||||
if authserviceinfo.main_char_id != "":
|
if authserviceinfo.main_char_id != "":
|
||||||
@ -192,7 +191,7 @@ def run_api_refresh():
|
|||||||
main_alliance_id = EveManager.get_charater_alliance_id_by_id(authserviceinfo.main_char_id)
|
main_alliance_id = EveManager.get_charater_alliance_id_by_id(authserviceinfo.main_char_id)
|
||||||
if main_alliance_id == settings.ALLIANCE_ID:
|
if main_alliance_id == settings.ALLIANCE_ID:
|
||||||
pass
|
pass
|
||||||
elif corp != None:
|
elif corp is not None:
|
||||||
if corp.is_blue is not True:
|
if corp.is_blue is not True:
|
||||||
deactivate_services(user)
|
deactivate_services(user)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user