awacke1 commited on
Commit
22d0d7c
·
verified ·
1 Parent(s): 2c627c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -836,7 +836,7 @@ def main():
836
  existing_doc = container.read_item(item=clone_id, partition_key=clone_id)
837
  new_doc = existing_doc.copy()
838
  new_doc['id'] = generate_unique_id() # Generate new unique ID with timestamp
839
- new_doc['name'] = new_doc['id'] # Generate new unique ID with timestamp
840
  new_doc['createdAt'] = datetime.utcnow().isoformat() # Update the creation time
841
  new_doc['_rid'] = None # Reset _rid or any system-managed fields
842
  new_doc['_self'] = None
 
836
  existing_doc = container.read_item(item=clone_id, partition_key=clone_id)
837
  new_doc = existing_doc.copy()
838
  new_doc['id'] = generate_unique_id() # Generate new unique ID with timestamp
839
+ new_doc['name'] = generate_unique_id() # Generate new unique ID with timestamp
840
  new_doc['createdAt'] = datetime.utcnow().isoformat() # Update the creation time
841
  new_doc['_rid'] = None # Reset _rid or any system-managed fields
842
  new_doc['_self'] = None