forked from Kartones/flask-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
74 lines (61 loc) · 1.84 KB
/
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
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
import flask_calendar.constants as constants
DEBUG = True
DATA_FOLDER = "data"
USERS_DATA_FOLDER = "users"
BASE_URL = "http://0.0.0.0:5000"
MIN_YEAR = 2017
MAX_YEAR = 2200
PASSWORD_SALT = "something random and full of non-standard characters"
HOST_IP = "0.0.0.0" # set to None for production
LOCALE = "es_ES.UTF-8"
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIMEZONE = "Europe/Madrid"
WEEK_STARTING_DAY = constants.WEEK_START_DAY_MONDAY
MONTHS_TO_EXPORT = 6 # currently only used for ICS export
FEATURE_FLAG_ICAL_EXPORT = False
# (base ^ attempts ) second delays between failed logins
FAILED_LOGIN_DELAY_BASE = 2
# If true, will automatically decorate hyperlinks with <a> tags upon rendering them
AUTO_DECORATE_TASK_DETAILS_HYPERLINK = True
SHOW_VIEW_PAST_BUTTON = True
# Of use if SHOW_VIEW_PAST_BUTTON is False
HIDE_PAST_TASKS = False
# days past to keep hidden tasks (future ones always kept) counting all months as 31 days long
DAYS_PAST_TO_KEEP_HIDDEN_TASKS = 62
# Cookies config
COOKIE_HTTPS_ONLY = False
COOKIE_SAMESITE_POLICY = "Lax"
# If to render emoji buttons at the task create/edit page
EMOJIS_ENABLED = True
# Colors for new task buttons
BUTTON_CUSTOM_COLOR_VALUE = "#3EB34F"
BUTTONS_COLORS_LIST = (
("#FF4848", "Red"),
("#3EB34F", "Green"),
("#2966B8", "Blue"),
("#808080", "Grey"),
("#B05F3C", "Brown"),
("#9588EC", "Purple"),
("#F2981A", "Orange"),
("#3D3D3D", "Black"),
)
# Emojis for new task buttons
BUTTONS_EMOJIS_LIST = (
"💬",
"📞",
"🍔",
"🍺",
"📽️",
"🎂",
"🏖️",
"💻",
"📔",
"✂️",
"🚂",
"🏡",
"🐶",
"🐱",
)
# percent of chance to do a GC-like sweep on save and clean empty and/or past hidden entries.
# values [0, 100] -> Note that 0 disables it, 100 makes it run every time
GC_ON_SAVE_CHANCE = 30