mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-06 21:01:42 +01:00
Compare commits
1 Commits
4bd486b009
...
ca0f997763
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca0f997763 |
@ -111,11 +111,11 @@ class Teamspeak3Manager:
|
|||||||
outlist = {}
|
outlist = {}
|
||||||
|
|
||||||
if type(groups) == list:
|
if type(groups) == list:
|
||||||
logger.debug("Received multiple groups. Iterating.")
|
logger.debug("Recieved multiple groups. Iterating.")
|
||||||
for group in groups:
|
for group in groups:
|
||||||
outlist[group['keys']['name']] = group['keys']['sgid']
|
outlist[group['keys']['name']] = group['keys']['sgid']
|
||||||
elif type(groups) == dict:
|
elif type(groups) == dict:
|
||||||
logger.debug("Received single group.")
|
logger.debug("Recieved single group.")
|
||||||
outlist[groups['keys']['name']] = groups['keys']['sgid']
|
outlist[groups['keys']['name']] = groups['keys']['sgid']
|
||||||
logger.debug("Returning name/id pairing: %s" % outlist)
|
logger.debug("Returning name/id pairing: %s" % outlist)
|
||||||
return outlist
|
return outlist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user