subtract from current time
This commit is contained in:
@@ -14,10 +14,9 @@ def update_incubation(source_collection):
|
|||||||
for doc in docs:
|
for doc in docs:
|
||||||
doc_id = doc.id #doc.to_dict()["_id"]
|
doc_id = doc.id #doc.to_dict()["_id"]
|
||||||
print(doc_id)
|
print(doc_id)
|
||||||
# Add 15 minutes
|
|
||||||
new_time = datetime.now() + timedelta(minutes=-15)
|
new_time = datetime.now() + timedelta(minutes=-15)
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
db.collection(source_collection).document(doc_id).update({
|
db.collection(source_collection).document(doc_id).update({
|
||||||
# "bloodGroup": "B+",
|
# "bloodGroup": "B+",
|
||||||
|
|||||||
Reference in New Issue
Block a user