From 638a69d98414267675a80ed534693d4c39655241 Mon Sep 17 00:00:00 2001 From: keonly Date: Thu, 23 Nov 2023 08:49:40 +0000 Subject: [PATCH] Formatted with black --- API/candidate.py | 4 +++- API/elected.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/API/candidate.py b/API/candidate.py index 505df9c..bdce5e3 100644 --- a/API/candidate.py +++ b/API/candidate.py @@ -89,4 +89,6 @@ def fetch_all_data( if args.save_method == "excel": save_to_excel(data_list, args.sgTypecode, is_elected=False) elif args.save_method == "mongo": - save_to_mongo(data_list, args.sgTypecode, CANDIDATE_TYPECODE_TYPE[args.sgTypecode]) + save_to_mongo( + data_list, args.sgTypecode, CANDIDATE_TYPECODE_TYPE[args.sgTypecode] + ) diff --git a/API/elected.py b/API/elected.py index 635efbf..61d9820 100644 --- a/API/elected.py +++ b/API/elected.py @@ -86,4 +86,6 @@ def fetch_all_data( if args.save_method == "excel": save_to_excel(data_list, args.sgTypecode, is_elected=True) elif args.save_method == "mongo": - save_to_mongo(data_list, args.sgTypecode, ELECTED_TYPECODE_TYPE[args.sgTypecode]) + save_to_mongo( + data_list, args.sgTypecode, ELECTED_TYPECODE_TYPE[args.sgTypecode] + )