updated email services
This commit is contained in:
@@ -66,14 +66,14 @@ if __name__ == "__main__":
|
||||
)
|
||||
results = collect_parsed_data_from_mongo_database(mongo_provider=provider)
|
||||
for result in results:
|
||||
parsed_data = result.get("parsed")
|
||||
file_name = result.get("filename")
|
||||
if not parsed_data:
|
||||
parsed_datas, file_name = result.get("parsed"), result.get("filename")
|
||||
if not parsed_datas:
|
||||
continue
|
||||
write_parsed_data_to_account_records(
|
||||
data_dict=parsed_data,
|
||||
collection_name=provider.collection.name,
|
||||
mongo_provider=provider,
|
||||
file=file_name,
|
||||
)
|
||||
for parsed_data in parsed_datas:
|
||||
write_parsed_data_to_account_records(
|
||||
data_dict=parsed_data,
|
||||
collection_name=provider.collection.name,
|
||||
mongo_provider=provider,
|
||||
file=file_name,
|
||||
)
|
||||
time.sleep(60)
|
||||
|
||||
Reference in New Issue
Block a user