Skip to content

Commit fda54c8

Browse files
committed
fix: stop deleting LA, delete DEN instead
1 parent ddc9768 commit fda54c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

firestore/cloud-client/snippets.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ def update_data_batch():
450450
sf_ref = db.collection(u'cities').document(u'SF')
451451
batch.update(sf_ref, {u'population': 1000000})
452452

453-
# Delete LA
454-
la_ref = db.collection(u'cities').document(u'LA')
455-
batch.delete(la_ref)
453+
# Delete DEN
454+
den_ref = db.collection(u'cities').document(u'DEN')
455+
batch.delete(den_ref)
456456

457457
# Commit the batch
458458
batch.commit()
@@ -754,6 +754,7 @@ def on_snapshot(col_snapshot, changes, read_time):
754754
u'capital': False,
755755
u'population': 80000
756756
})
757+
sleep(1)
757758

758759
# Modifying document
759760
mtv_document.update({

0 commit comments

Comments
 (0)