Skip to content
Snippets Groups Projects
Verified Commit f9e99b80 authored by hanfi's avatar hanfi
Browse files

reset delivery if new checkin

parent 8f9e25d8
Branches
No related tags found
1 merge request!6reset delivery if new checkin
......@@ -109,6 +109,7 @@ def receive_item_with_image(db: Session, item: schemas.ItemCreateByImageAtStorag
def receive_item(db: Session, item: schemas.Item, storage: schemas.Storage):
item.received_at = datetime.now()
item.deployed_at = None
item.storage = storage.name
db.commit()
db.refresh(item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment