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