Skip to content
Snippets Groups Projects

reset delivery if new checkin

Merged hanfi requested to merge staging into main
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -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)
Loading