Skip to content

Commit

Permalink
Formatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
keonly authored and Re-st committed Nov 23, 2023
1 parent c5e217b commit 638a69d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion API/candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
4 changes: 3 additions & 1 deletion API/elected.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)

0 comments on commit 638a69d

Please sign in to comment.