subtract from current time

This commit is contained in:
Pritimay Sarkar
2023-12-09 16:15:38 +05:30
parent 9e15fd285f
commit fb93e8fa87

View File

@@ -14,10 +14,9 @@ def update_incubation(source_collection):
for doc in docs:
doc_id = doc.id #doc.to_dict()["_id"]
print(doc_id)
# Add 15 minutes
new_time = datetime.now() + timedelta(minutes=-15)
try:
db.collection(source_collection).document(doc_id).update({
# "bloodGroup": "B+",