Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Feb 22, 2024
2 parents b91fc6b + 3b32744 commit 5cb5078
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pypnusershub/routes_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,15 @@ def _connect_admin(f):
@wraps(f)
def __connect_admin(*args, **kwargs):
# connexion à usershub
id_app_usershub = db.session.scalars(
id_app_usershub = db.session.scalar(
select(Application.id_application)
.where(Application.code_application == "UH")
.limit(1)
).first()
)

if not id_app_usershub:
return json.dumps({"msg": "Pas d'id app USERSHUB"}), 500

id_app_usershub = id_app_usershub[0]

# test si on est déjà connecté
try:
r = s.post(
Expand Down

0 comments on commit 5cb5078

Please sign in to comment.