subtract from current time
This commit is contained in:
@@ -14,9 +14,8 @@ 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({
|
||||||
|
|||||||
Reference in New Issue
Block a user