Skip to content

Commit

Permalink
change scalar_one to one to get scope column
Browse files Browse the repository at this point in the history
  • Loading branch information
joelclems committed Jan 12, 2024
1 parent f7ca423 commit cf96ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gn_modulator/routes/utils/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_one_rest(module_code, object_code, value):
params=params,
)

m = db.session.execute(q).unique().scalar_one()
m = db.session.execute(q).unique().one()
except sm.errors.SchemaUnsufficientCruvedRigth as e:
return f"Erreur Cruved : {str(e)}", 403

Expand Down

0 comments on commit cf96ef3

Please sign in to comment.