Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Make state names in contact the same as the main api
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Mar 22, 2020
1 parent 7bfead6 commit f784050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/contacts-in.json
Expand Up @@ -33,7 +33,7 @@
{"loc": "Rajasthan", "number": "+91-141-2225624"},
{"loc": "Sikkim", "number": "104"},
{"loc": "Tamil Nadu", "number": "+91-44-29510500"},
{"loc": "Telangana", "number": "104"},
{"loc": "Telengana", "number": "104"},
{"loc": "Tripura", "number": "+91-381-2315879"},
{"loc": "Uttarakhand", "number": "104"},
{"loc": "Uttar Pradesh", "number": "18001805145"},
Expand All @@ -43,7 +43,7 @@
{"loc": "Dadra and Nagar Haveli", "number": "104"},
{"loc": "Daman & Diu", "number": "104"},
{"loc": "Delhi", "number": "+91-11-22307145"},
{"loc": "Jammu & Kashmir", "number": "+91-191-2520982,+91-194-2440283"},
{"loc": "Jammu and Kashmir", "number": "+91-191-2520982,+91-194-2440283"},
{"loc": "Ladakh", "number": "+91-1982-256462"},
{"loc": "Lakshadweep", "number": "104"},
{"loc": "Puducherry", "number": "104"}
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-contacts
Expand Up @@ -4,4 +4,4 @@ file="$1"
lastOriginUpdate="$2"
[ -z "$file" -o -z "$lastOriginUpdate" ] && echo "usage: $0 <contacts.json> <lastOriginUpdate>" >&2 && exit 1

wrangler kv:key put 'cached_contacts' "$(cat $file | jq "{\"success\": true, \"data\":{\"contacts\":.}, \"lastRefreshed\":\"$(date '+%Y-%m-%dT%H:%M:00.000Z')\", \"lastOriginUpdate\": \"$lastOriginUpdate\"}")" -b COVID19
wrangler kv:key put 'cached_contacts' "$(cat $file | jq -c "{\"success\": true, \"data\":{\"contacts\":.}, \"lastRefreshed\":\"$(date '+%Y-%m-%dT%H:%M:00.000Z')\", \"lastOriginUpdate\": \"$lastOriginUpdate\"}")" -b COVID19

0 comments on commit f784050

Please sign in to comment.