original_docstring: 
          Updates `Admin` for user
  
          Parameters:
              username: str = `User name`
          
docstring: Updates `Admin` for user
docstring_tokens: Updates ` Admin ` for user
code: def put(current_user: UserDatabase, self):
          '''
          Updates `Admin` for user
  
          Parameters:
              username: str = `User name`
          '''
  
          if not current_user.admin:
              return {'error': 'Unauthorized user'}, 409
  
          args = request.args.to_dict()
  
          # If args is empty or keyword in args != `username`
          if not args or set(args) != {'username'}:
              return {'error': 'Missing parameter `username`'}
      
          user = UserDatabase.query.filter_by(username=args['username']).first()
          user.admin = not user.admin
          db.session.commit()
  
          return {'log': f'`Admin` for {user.username} has been updated'}, 200
code_tokens: def put ( current_user : UserDatabase , self ) : if not current_user . admin : return { 'error' : 'Unauthorized user' } , 409 args = request . args . to_dict ( ) if not args or set ( args ) != { 'username' } : return { 'error' : 'Missing parameter `username`' } user = UserDatabase . query . filter_by ( username = args [ 'username' ] ) . first ( ) user . admin = not user . admin db . session . commit ( ) return { 'log' : f'`Admin` for {user.username} has been updated' } , 200
short_docstring: Updates `Admin` for user
short_docstring_tokens: Updates ` Admin ` for user
comment: '''
          Updates `Admin` for user
  
          Parameters:
              username: str = `User name`
          '''$SEP$# If args is empty or keyword in args != `username`