diff --git a/scripts/search_fields.py b/scripts/search_fields.py index 55f4e2e..48263fa 100644 --- a/scripts/search_fields.py +++ b/scripts/search_fields.py @@ -22,7 +22,7 @@ test_collection = db.collection("testData") # start_date = sys.argv[1] # '2023-01-12' #input("Please enter the start date (yyyy-mm-dd): ") # end_date = sys.argv[2] #'2023-07-16' #input("Please enter the end date (yyyy-mm-dd): ") -query = patient_collection.where(filter=FieldFilter("createdAt", ">=", "2023-10-31")).where(filter=FieldFilter("createdAt", "<", "2023-11-01")) +query = patient_collection.where(filter=FieldFilter("createdAt", ">=", "2023-11-07")).where(filter=FieldFilter("createdAt", "<", "2023-11-08")) #.where(filter=FieldFilter("registrationCenterName", "==", "SCS high school")) patient_docs = query.stream() @@ -36,8 +36,8 @@ for patient_doc in patient_docs: # # print(patient_doc.id) # print(patient_data['_id']) # print(patient_data['_id']) - if "VIS" in patient_data['_id']: + if "LAL" in patient_data['_id']: # print("ADA") print(patient_data['_id']) - db.collection("patientData").document(patient_doc.id).update({"_idSearch": '20231103' + patient_data['_id']}) + db.collection("patientData").document(patient_doc.id).update({"_idSearch": '20231108' + patient_data['_id']})