You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You copy-pasted the args.add to repurpose it for args.remove:
elif args.add:
users = args.add.replace('u/', '').replace('/', '').split(',')
for user in users:
if not gw.db.user_already_added(user):
gw.db.add_user(user, new=True)
gw.debug('Add new user: /u/%s' % user)
else:
gw.debug('Warning: User already added: /u/%s' % user)
elif args.remove:
users = args.remove.replace('u/', '').replace('/', '').split(',')
for user in users:
if gw.db.user_already_added(user):
gw.db.remove_user(user, new=True)
gw.debug('Add new user: /u/%s' % user)
else:
gw.debug('Warning: User already added: /u/%s' % user)
change the args.remove to the following to fix:
elif args.remove:
users = args.remove.replace('u/', '').replace('/', '').split(',')
for user in users:
if gw.db.user_already_added(user):
gw.db.remove_user(user)
gw.debug('Removed user: /u/%s' % user)
else:
gw.debug('Warning: User not in Database: /u/%s' % user)
The text was updated successfully, but these errors were encountered: