|
@@ -8,8 +8,8 @@ def create_api_key_for_handlers():
|
|
|
api_key_list = []
|
|
|
|
|
|
for botname in BOTLIST:
|
|
|
- if not APIKey.objects.filter(name=f"api-key-for-{botname}").exists():
|
|
|
- api_key, key = APIKey.objects.create_key(name=f"api-key-for-{botname}")
|
|
|
+ if not APIKey.objects.filter(name=botname).exists():
|
|
|
+ api_key, key = APIKey.objects.create_key(name=botname)
|
|
|
api_key_list.append([botname, key])
|
|
|
print(f"Initial API Key for {botname} handler created.")
|
|
|
else:
|