forked from the-blue-alliance/the-blue-alliance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtba_config.py
43 lines (36 loc) · 1.37 KB
/
tba_config.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
import os
from consts.landing_type import LandingType
DEBUG = os.environ.get('SERVER_SOFTWARE') is not None and os.getenv('APPLICATION_ID') != 's~tbatv-prod-hrd'
DEBUG = DEBUG or os.getenv('IS_TBA_TEST') is not None or os.getenv('TRAVIS') is not None
MAX_YEAR = 2018
# Fraction of requests to profile
RECORD_FRACTION = 0.1
# Fraction of requests to send to Google Analytics
GA_RECORD_FRACTION = 1.0
# The CONFIG variables should have exactly the same structure between environments
# Eventually a test environment should be added. -gregmarra 17 Jul 2012
if DEBUG:
CONFIG = {
"env": "dev",
"memcache": False,
"database_query_cache": False,
"response_cache": False,
"firebase-url": "https://thebluealliance-dev.firebaseio.com/{}.json?print=silent&auth={}",
"firebase-push": False,
"use-compiled-templates": False,
"save-frc-api-response": False,
"update-webcast-online-status": False,
}
else:
CONFIG = {
"env": "prod",
"memcache": True,
"database_query_cache": True,
"response_cache": True,
"firebase-url": "https://tbatv-prod-hrd.firebaseio.com/{}.json?print=silent&auth={}",
"firebase-push": True,
"use-compiled-templates": True,
"save-frc-api-response": True,
"update-webcast-online-status": True,
}
CONFIG["static_resource_version"] = 8