Skip to content

Commit

Permalink
small fix for ADMINS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh0253 committed Dec 13, 2020
1 parent 3bb8567 commit e89c327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
# Admins, Channels & Users
ADMINS = [int(admin) if re.search('^\d+$', admin) else admin for admin in environ['ADMINS'].split()]
CHANNELS = [int(ch) if re.search('^.\d+$', ch) else ch for ch in environ['CHANNELS'].split()]
AUTH_USERS = [int(user) if re.search('^\d+$', user) else user for user in environ['AUTH_USERS'].split()]
auth_users = [int(user) if re.search('^\d+$', user) else user for user in environ['AUTH_USERS'].split()]
AUTH_USERS = (auth_users + ADMINS) if auth_users else []

# MongoDB information
DATABASE_URI = environ['DATABASE_URI']
Expand Down

0 comments on commit e89c327

Please sign in to comment.