Skip to content

Commit

Permalink
correct obj references in newly uploaded recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Jun 27, 2023
1 parent 1e1610c commit 39435a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cellpack/autopack/DBRecipeHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ def upload_objects(self, objects):
_, doc_id = object_doc.should_write(self.db)
if doc_id:
print(f"objects/{object_doc.name} is already in firestore")
obj_path = self.db.create_path("objects", doc_id)
self.objects_to_path_map[obj_name] = obj_path
else:
_, obj_path = self.upload_data("objects", object_doc.as_dict())
self.objects_to_path_map[obj_name] = obj_path
Expand Down

0 comments on commit 39435a1

Please sign in to comment.