This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
/
settings.py
85 lines (63 loc) · 3.04 KB
/
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
# -*- coding: UTF-8 -*-
MAIN_ENTITY_LEVEL = 'municipio'
MAIN_ENTITY_NAME = 'Pinto'
BUDGET_LOADER = 'PintoBudgetLoader'
PAYMENTS_LOADER = 'PintoPaymentsLoader'
FEATURED_PROGRAMMES = ['9240', '4910', '4930']
OVERVIEW_INCOME_NODES = [
{'nodes': [['11', '113']], 'label': 'Sobre bienes inmuebles de naturaleza urbana'},
'13',
'42',
'45',
{
'nodes': [['11', '115']],
'label': 'Impuesto sobre vehículos de tracción mecánica',
},
{
'nodes': [['11', '116']],
'label': 'Impuesto sobre incremento del valor de los terrenos de naturaleza urbana',
},
'91',
]
OVERVIEW_EXPENSE_NODES = ['45', '13', '92', '32', '23', '34', '33', '17', '01']
# How aggresive should the Sankey diagram reorder the nodes. Default: 0.79 (Optional)
# Note: 0.5 usually leaves nodes ordered as defined. 0.95 sorts by size (decreasing).
OVERVIEW_RELAX_FACTOR = 0.5
# Show Payments section in menu & home options. Default: False.
SHOW_PAYMENTS = True
# Show Tax Receipt section in menu & home options. Default: False.
SHOW_TAX_RECEIPT = True
# Show Counties & Towns links in Policies section in menu & home options. Default: False.
SHOW_COUNTIES_AND_TOWNS = False
# Show an extra tab with institutional breakdown. Default: True.
SHOW_INSTITUTIONAL_TAB = False
# Show an extra tab with funding breakdown (only applicable to some budgets). Default: False.
# SHOW_FUNDING_TAB = False
# Show an extra column with actual revenues/expenses. Default: True.
# Warning: the execution data still gets shown in the summary chart and in downloads.
# SHOW_ACTUAL = True
# Treemap use max value between tabs to calculate size. Default: True
# Note: Pinto has some unusually large 2012 revenues due to refinancing, so this setting
# makes a noticeable impact. We launched when a global max value was not available, so
# we'll keep it like that.
TREEMAP_GLOBAL_MAX_VALUE = False
# Include financial income/expenditures in overview and global policy breakdowns. Default: False.
INCLUDE_FINANCIAL_CHAPTERS_IN_BREAKDOWNS = True
# Search in entity names. Default: True.
SEARCH_ENTITIES = False
# Supported languages. Default: ('es', 'Castellano')
LANGUAGES = (('es', 'Castellano'),)
# Setup Data Source Budget link
DATA_SOURCE_BUDGET = 'https://www.ayto-pinto.es/presupuestos-municipales-2015'
# Setup Data Source Population link
DATA_SOURCE_POPULATION = 'https://www.ine.es/jaxiT3/Tabla.htm?t=2881&L=0'
# Setup Data Source Inflation link
DATA_SOURCE_INFLATION = 'https://www.ine.es/jaxiT3/Tabla.htm?t=22350&L=0'
# Setup Main Entity Web Url
MAIN_ENTITY_WEB_URL = 'https://www.ayto-pinto.es/'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_LEGAL_URL = 'https://www.ayto-pinto.es/web/ayuntamiento-de-pinto/aviso-legal'
# External URL for Cookies Policy (if empty we use out template page/cookies.html)
COOKIES_URL = 'https://www.ayto-pinto.es/web/ayuntamiento-de-pinto/aviso-legal'
# Allow overriding of default treemap color scheme
# COLOR_SCALE = [ '#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#e7969c', '#bcbd22', '#17becf' ]