-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.py
28 lines (22 loc) · 921 Bytes
/
env.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
if os.getcwd() == '/home/runner/work/communitymap/communitymap':
GEO_API_URL = os.environ["GEO_API_URL"]
LOCAL_DB_URL = os.environ["LOCAL_DB_URL"]
REMOTE_DB_URL = os.environ["REMOTE_DB_URL"]
HEADER_KEY = os.environ["HEADER_KEY"]
HEADER_LOCAL_KEY = os.environ["HEADER_LOCAL_KEY"]
GOOGLE_KEY = os.environ["GOOGLE_KEY"]
else:
import secrets
GEO_API_URL = secrets.GEO_API_URL
LOCAL_DB_URL = secrets.LOCAL_DB_URL
REMOTE_DB_URL = secrets.REMOTE_DB_URL
HEADER_KEY = secrets.HEADER_KEY
HEADER_LOCAL_KEY = secrets.HEADER_LOCAL_KEY
GOOGLE_KEY = secrets.GOOGLE_KEY
ROOT = os.getcwd()
headers = {"X-Parse-Application-Id": HEADER_KEY,
"X-Parse-REST-API-Key": "undefined"}
headers_local = {"X-Parse-Application-Id": HEADER_LOCAL_KEY,
"X-Parse-REST-API-Key": "undefined"}
GEO_API_PARAMS = {"radius": 100, "minPopulation":40000, "limit": 1}