Skip to content
Snippets Groups Projects
Commit 2d8c8c69 authored by hanfi's avatar hanfi
Browse files

Merge branch 'staging' into 'main'

reset delivery if new checkin

See merge request hanfi/bgp_backend!6
parents 95a1ae07 f9e99b80
No related branches found
No related tags found
Loading
...@@ -109,6 +109,7 @@ def receive_item_with_image(db: Session, item: schemas.ItemCreateByImageAtStorag ...@@ -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): def receive_item(db: Session, item: schemas.Item, storage: schemas.Storage):
item.received_at = datetime.now() item.received_at = datetime.now()
item.deployed_at = None
item.storage = storage.name item.storage = storage.name
db.commit() db.commit()
db.refresh(item) db.refresh(item)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment