Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 328a95d7 authored by GotthardG's avatar GotthardG
Browse files

fixed bug with generate qrcode

parent c3fa0273
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,8 @@ async def generate_dewar_qrcode(dewar_id: int, db: Session = Depends(get_db)):
raise HTTPException(status_code=404, detail="Dewar not found")
if not dewar.unique_id:
raise HTTPException(status_code=400, detail="Unique ID must be set during label creation.")
dewar.unique_id = generate_unique_id(db)
db.commit()
qr = qrcode.QRCode(version=1, box_size=10, border=5)
qr.add_data(dewar.unique_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment