-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
46 lines (37 loc) · 1.7 KB
/
constants.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
class Colours:
red = '#7f0000'
white = '#fff8e1'
rose = '#ffcdd2'
ONLINE_CACHE_REGEX = 'online_data_2020.*\.csv'
S3_ACCESS_KEY = os.environ.get('AWS_ACCESS_KEY_ID_WINE')
S3_SECRET_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY_WINE')
S3_BUCKET_NAME = os.environ.get('S3_BUCKET_NAME_WINE')
ONLINE_FILE_REGEX = '202.*\.csv'
GLASSES_IN_A_BOTTLE = 6
CASE_DOWNLOAD_URL = 'https://docs.google.com/spreadsheets/d/1D6okqtBS3S2NRC7GFVHzaZ67DuTw7LX49-fqSLwJyeo/export?format=xlsx'
CASE_CITATION = "https://github.com/ishaberry/Covid19Canada"
CASE_DATA_CSV = "canada_case_data_latest.csv"
COUNTRY_DATA_CACHE_CSV = "international_case_data_latest.csv"
ONLINE_DATA_CSV = f"online_data_latest.csv"
TODAY_SAQ_DATA_CSV = f"saq_data_today.csv"
DOWNLOAD_URL = 'https://docs.google.com/spreadsheets/d/1D6okqtBS3S2NRC7GFVHzaZ67DuTw7LX49-fqSLwJyeo/export?format=xlsx'
COUNTRY_API_IDS = {'Italy': 137, 'South Korea': 143,
'Hubei': 62, 'France': 116, 'Quebec': 44, 'US': 225,
'Alberta': 35,
'British Columbia': 36,
'Manitoba': 38,
'New Brunswick': 39,
'Newfoundland & Labrador': 40,
'Nova Scotia': 41,
'Ontario': 42,
'PEI': 43,
'Saskatchewan': 45,
'Yukon': 256,
'UK': 223,
}
CASE_API_URL = 'https://coronavirus-tracker-api.herokuapp.com/v2/locations'
CASE_API_GITHUB = 'https://github.com/ExpDev07/coronavirus-tracker-api'
COUNTRIES_TO_GRAPH = ['Italy', 'South Korea', 'UK',
'US', 'Quebec', 'British Columbia',
'Ontario', 'Alberta']