Exemplo n.º 1
0
Arquivo: user.py Projeto: keho98/argos
 def patch(self):
     if current_user.is_authenticated():
         for key, val in parser.parse_args().items():
             setattr(current_user, key, val)
         db.session.commit()
         return current_user
     else:
         return unauthorized()
Exemplo n.º 2
0
Arquivo: user.py Projeto: keho98/argos
 def get(self):
     if current_user.is_authenticated():
         return current_user
     else:
         return unauthorized()