chnage pref name

This commit is contained in:
Pritimay Sarkar
2024-01-16 15:29:30 +05:30
parent 7917d5073b
commit 6f4ba44e48
7 changed files with 107 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ test_collection = db.collection("testData")
query = patient_collection.where(filter = FieldFilter("_id", "in",
[
'xyx','xyz'
'957539044830HEMSAN','336694457928TRUSAN','952345130951PRIKES','867067867252SAMKES','833204928565KHUKES','621177486591TANKES','644852777735SAKKES','962439786909TANKES','735707478715MANKES','200338449939SIMKES','687100580009VAIKES','285966149202RUSKES','967578334682RAKKES','921021476789PIYKES'
]))
#.where(filter=FieldFilter("registrationCenterName", "==", "SCS high school"))
patient_docs = query.stream()
@@ -35,10 +35,10 @@ for patient_doc in patient_docs:
delete_field_name = 'incubationTime'
# batch.update(doc_ref, {
# "_idSearch": '20231209' + patient_data['_id'],
# # delete_field_name: firestore.DELETE_FIELD,
# "allowFreshTest": True,
# "testStatus": False})
batch.update(doc_ref, {
"_idSearch": '20231221' + patient_data['_id'],
delete_field_name: firestore.DELETE_FIELD,
"allowFreshTest": True,
"testStatus": False})
batch.commit()