chnage pref name
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user