forked from openstates/openstates-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
billy_settings.py
123 lines (115 loc) · 2.96 KB
/
billy_settings.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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import os
from os.path import abspath, dirname, join
SCRAPER_PATHS=[os.path.join(os.getcwd(), 'openstates')]
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DATABASE = 'fiftystates'
PARTY_DETAILS = {
# reminder: think through Singular, Plural, Adjective
'Democratic': {'noun': 'Democrat', 'abbreviation': 'D'},
'Republican': {'abbreviation': 'R'},
'Independent': {'abbreviation': 'I'},
'Democratic-Farmer-Labor': {'abbreviation': 'DFL',
'plural_noun': 'DFLers'}, # MN
'Nonpartisan': {'abbreviation': 'NP', 'plural_noun': 'Nonpartisan'}, # NE
'Unknown': {'abbreviation': '?', 'plural_noun': 'Unknown'}, # NY & PR
'Partido Nuevo Progresista': {'abbreviation': 'PNP'}, # PR
u'Partido Popular Democr\xe1tico': {'abbreviation': 'PPD'}, # PR
'Carter County Republican': {'abbreviation': 'CCR'}, # TN
'Working Families': {'abbreviation': 'WF'}, # NY & VT
'Conservative': {'abbreviation': 'C'}, # NY
'Progressive': {'abbreviation': 'P'}, # VT
'Republican/Democratic': {'plural_noun': 'Republican/Democratic'}, # VT
}
# LEGISLATOR_FILTERS = {
# "billy.importers.filters.single_space_filter": [
# "full_name",
# "first_name",
# "last_name",
# "middle_name",
# ],
# "billy.importers.filters.phone_filter": [
# "office_phone",
# "phone",
# "offices.phone",
# "offices.fax",
# ],
# "billy.importers.filters.email_filter": [
# "offices.email",
# ],
# }
#
# BILL_FILTERS = {
# "billy.importers.filters.single_space_filter": [
# "actions.action",
# "title",
# ]
# }
#
# EVENT_FILTERS = {
# "billy.importers.filters.single_space_filter": [
# "description",
# "participants.participant",
# "related_bills.bill_id",
# "related_bills.description",
# ]
# }
BOUNDARY_SERVICE_SETS = 'sldl,sldu'
ENABLE_DOCUMENT_VIEW = {
'ak': True,
'al': True,
'ar': False, # revisit
'az': False,
'ca': False,
'co': False, # revisit
'ct': True,
'dc': True,
'de': True,
'fl': True,
'ga': False,
'hi': True,
'ia': True,
'id': True,
'il': True,
'in': True,
'ks': True,
'ky': True,
'la': False, # revisit
'ma': False,
'md': True,
'me': True,
'mi': True,
'mn': False,
'mo': True,
'ms': True,
'mt': True,
'nc': True,
'nd': True,
'ne': True,
'nh': True,
'nj': True,
'nm': True,
'nv': True,
'ny': False,
'oh': True,
'ok': True,
'or': True,
'pa': False, # revisit
'pr': True,
'ri': False, # revisit
'sc': True,
'sd': False,
'tn': True,
'tx': False, # revisit
'ut': True,
'va': False,
'vt': True,
'wa': False, # revisit
'wi': True,
'wv': False,
'wv': False
}
try:
from billy_local import *
except ImportError:
pass