mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-17 19:59:29 +00:00
Update EDK API export
This commit is contained in:
@@ -8,14 +8,14 @@ class Command(NoArgsCommand):
|
|||||||
help = "Extracts a list of director's full API keys in CSV format for uploading to EDK"
|
help = "Extracts a list of director's full API keys in CSV format for uploading to EDK"
|
||||||
|
|
||||||
def handle_noargs(self, **options):
|
def handle_noargs(self, **options):
|
||||||
chars = EVEPlayerCharacter.objects.filter(roles__name='roleDirector', eveaccount__api_keytype=API_KEYTYPE_FULL, eveaccount__api_status=API_STATUS_OK)
|
chars = EVEPlayerCharacter.objects.filter(roles__name='roleDirector', eveaccount__api_keytype=API_KEYTYPE_FULL, eveaccount__api_status=API_STATUS_OK, corporation__alliance__ticker="TEST")
|
||||||
donekeys = []
|
donekeys = []
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
for c in chars:
|
for c in chars:
|
||||||
i = i + 1
|
i = i + 1
|
||||||
print "\"TEST\",\"API_CharID_%s\",\"%s\"" % (i, c.id)
|
print "\"TEST\",\"API_CharID_%s\",\"%s\"" % (i, c.id)
|
||||||
print "\"TEST\",\"API_UserID_%s\",\"%s\"" % (i, c.eveaccount_set.all()[0].id)
|
print "\"TEST\",\"API_UserID_%s\",\"%s\"" % (i, c.eveaccount_set.all()[0].pk)
|
||||||
print "\"TEST\",\"API_Key_%s\",\"%s\"" % (i, c.eveaccount_set.all()[0].api_key)
|
print "\"TEST\",\"API_Key_%s\",\"%s\"" % (i, c.eveaccount_set.all()[0].api_key)
|
||||||
print "\"TEST\",\"API_Name_%s\",\"%s - %s\"" % (i, c.corporation.name, c.name)
|
print "\"TEST\",\"API_Name_%s\",\"%s - %s\"" % (i, c.corporation.name, c.name)
|
||||||
print "\"TEST\",\"API_Type_%s\",\"corp\"" % (i)
|
print "\"TEST\",\"API_Type_%s\",\"corp\"" % (i)
|
||||||
|
|||||||
Reference in New Issue
Block a user