Skip to content

Commit

Permalink
Update data fetching endpoint and rename email field to contact - pre…
Browse files Browse the repository at this point in the history
…p. done
  • Loading branch information
Arman Torkzaban committed Dec 26, 2024
1 parent dc06d3c commit 3de2eba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/update_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def reshape_data(entity):
"location": entity.get("location", ""),
"post_location": entity.get("post_location", ""),
"internetAddress": entity.get("internetAddress", ""),
"email": entity.get("email", ""),
"contact": entity.get("contact", ""),
"phone": entity.get("phone", ""),
"about": entity.get("about", ""),
"expertise": entity.get("expertise", ""),
Expand Down
2 changes: 1 addition & 1 deletion src/routes/parties/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
];
onMount(() => {
fetch("/data/political_parties-2024-08-10.json")
fetch("/data/political_parties.json")
.then((response) => response.json())
.then((json) => {
data = json;
Expand Down
File renamed without changes.

0 comments on commit 3de2eba

Please sign in to comment.