-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py.example
73 lines (63 loc) · 1.42 KB
/
settings.py.example
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import os
from global_settings import *
DB_NAME = 'benford1'
AGENCIES = [
'USDA',
'DOC',
'DOD',
'ED',
'DOE',
'HHS',
'DHS',
'HUD',
'DOJ',
'DOL',
'DOS',
'DOT',
'VA',
'DOI',
'TREAS',
'EPA',
# # 'GSA', No files
'NASA',
'NSF',
'NRC',
# # 'OPM', No files
'SBA',
'SSA',
'USAID',
'OTHER'
]
SPENDING_TYPES = [
'Grants',
'Contracts',
# 'Loans',
# 'DirectPayments',
# 'Insurance',
# 'Other'
]
ANALYSIS_FIELDS = {
'Grants': ['fed_funding_amount', 'non_fed_funding_amount', 'total_funding_amount'],
'Contracts': ['obligatedamount', 'baseandexercisedoptionsvalue',
'baseandalloptionsvalue', 'annualrevenue'],
'Loans': ['face_loan_guran', 'orig_sub_guran'],
'DirectPayments': ['fed_funding_amount'],
'Insurance': ['fed_funding_amount', 'non_fed_funding_amount', 'total_funding_amount'],
'Other': ['fed_funding_amount'],
}
ANALYSIS_DATEFIELDS = {
'Grants': 'obligation_action_date',
'Contracts': 'effectivedate',
'Loans': 'obligation_action_date',
'DirectPayments': 'obligation_action_date',
'Insurance': 'obligation_action_date',
'Other': 'obligation_action_date'
}
DATE_FORMATS = [
'%Y-%m-%d',
'%Y%m%d',
'%m/%d/%Y'
]
FISCAL_YEARS = range(2000, 2012)
DOWNLOAD_DEST_DIR = os.path.join(PROJECT_ROOT, 'downloads')
CACHE_DIR = os.path.join(PROJECT_ROOT, '.cache')