2024-02-11 22:57:52 +00:00
|
|
|
from sanic.log import logging
|
|
|
|
LOG_LEVEL = logging.DEBUG
|
|
|
|
|
2023-12-30 10:27:42 +00:00
|
|
|
API_TOKEN = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
2023-08-06 10:47:07 +00:00
|
|
|
ORGANIZER = 'furizon'
|
2023-12-30 10:27:42 +00:00
|
|
|
EVENT_NAME = 'overlord'
|
|
|
|
HOSTNAME = 'reg.furizon.net'
|
2023-08-06 10:47:07 +00:00
|
|
|
|
|
|
|
headers = {'Host': HOSTNAME, 'Authorization': f'Token {API_TOKEN}'}
|
2024-02-13 13:17:21 +00:00
|
|
|
domain = "http://urlllllllllllllllllllll/"
|
|
|
|
base_url = "{domain}api/v1/"
|
2023-12-30 10:27:42 +00:00
|
|
|
base_url_event = f"{base_url}organizers/{ORGANIZER}/events/{EVENT_NAME}/"
|
2023-07-23 20:34:03 +00:00
|
|
|
|
2023-12-30 10:27:42 +00:00
|
|
|
PROPIC_DEADLINE = 9999999999
|
2024-01-08 21:02:27 +00:00
|
|
|
PROPIC_MAX_FILE_SIZE = 5 * 1024 * 1024 # 5MB
|
|
|
|
PROPIC_MAX_SIZE = (2048, 2048) # (Width, Height)
|
|
|
|
PROPIC_MIN_SIZE = (125, 125) # (Width, Height)
|
|
|
|
|
2024-01-21 23:35:44 +00:00
|
|
|
# This is used for feedback sending inside of the app. Feedbacks will be sent to the specified chat using the bot api id.
|
|
|
|
TG_BOT_API = '123456789:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
|
|
|
|
TG_CHAT_ID = -1234567
|
|
|
|
|
|
|
|
# These order codes have additional functions.
|
|
|
|
ADMINS = ['XXXXX', 'YYYYY']
|
|
|
|
# A list of staff_roles
|
|
|
|
ADMINS_PRETIX_ROLE_NAMES = ["Reserved Area admin", "main staff"]
|
|
|
|
|
|
|
|
SMTP_HOST = 'host'
|
|
|
|
SMTP_PORT = 0
|
|
|
|
SMTP_USER = 'user'
|
|
|
|
SMTP_PASSWORD = 'pw'
|
2024-02-11 22:57:52 +00:00
|
|
|
EMAIL_SENDER_NAME = "Fantastic Furcon Wow"
|
|
|
|
EMAIL_SENDER_MAIL = "no-reply@thisIsAFantasticFurconWowItIsWonderful.cuteFurries.ovh"
|
|
|
|
SMPT_CLIENT_CLOSE_TIMEOUT = 60 * 15 # 15 minutes
|
2024-01-21 23:35:44 +00:00
|
|
|
|
2023-07-23 20:34:03 +00:00
|
|
|
FILL_CACHE = True
|
2023-12-30 10:27:42 +00:00
|
|
|
CACHE_EXPIRE_TIME = 60 * 60 * 4
|
2023-07-23 20:34:03 +00:00
|
|
|
|
|
|
|
DEV_MODE = True
|
2024-01-11 17:15:56 +00:00
|
|
|
ACCESS_LOG = True
|
|
|
|
EXTRA_PRINTS = True
|
2023-07-23 20:34:03 +00:00
|
|
|
|
2024-02-14 19:22:56 +00:00
|
|
|
METRICS_PATH = "/welcome/metrics"
|
2024-02-14 15:10:27 +00:00
|
|
|
|
2024-01-29 23:35:56 +00:00
|
|
|
# Additional configured locales.
|
|
|
|
# If an order has a country that's not listed here,
|
|
|
|
# Will default to an english preference.
|
|
|
|
AVAILABLE_LOCALES = ['it',]
|
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
# Metadata property for item-id mapping
|
|
|
|
METADATA_NAME = "item_name"
|
|
|
|
# Metadata property for internal category mapping (not related to pretix's category)
|
|
|
|
METADATA_CATEGORY = "category_name"
|
|
|
|
|
2024-01-21 23:35:44 +00:00
|
|
|
SPONSORSHIP_COLOR_MAP = {
|
|
|
|
'super': (251, 140, 0),
|
|
|
|
'normal': (142, 36, 170)
|
|
|
|
}
|
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
# Maps Products metadata name <--> ID
|
|
|
|
ITEMS_ID_MAP = {
|
|
|
|
'early_bird_ticket': 126,
|
|
|
|
'regular_ticket': 127,
|
|
|
|
'staff_ticket': 155,
|
|
|
|
'daily_ticket': 162,
|
|
|
|
'sponsorship_item': 129,
|
|
|
|
'early_arrival_admission': 133,
|
|
|
|
'late_departure_admission': 134,
|
|
|
|
'membership_card_item': 128,
|
|
|
|
'bed_in_room': 153,
|
|
|
|
'room_type': 135,
|
|
|
|
'room_guest': 136,
|
|
|
|
'daily_1': 163,
|
|
|
|
'daily_2': 164,
|
|
|
|
'daily_3': 165,
|
|
|
|
'daily_4': 166,
|
|
|
|
'daily_5': None
|
2023-08-06 10:47:07 +00:00
|
|
|
}
|
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
# Maps Products' variants metadata name <--> ID
|
|
|
|
ITEM_VARIATIONS_MAP = {
|
|
|
|
'sponsorship_item': {
|
|
|
|
'sponsorship_item_normal': 55,
|
|
|
|
'sponsorship_item_super': 56
|
|
|
|
},
|
|
|
|
'bed_in_room': {
|
|
|
|
'bed_in_room_main_1': 83,
|
|
|
|
'bed_in_room_main_2': 67,
|
|
|
|
'bed_in_room_main_3': 68,
|
|
|
|
'bed_in_room_main_4': 69,
|
|
|
|
'bed_in_room_main_5': 70,
|
|
|
|
'bed_in_room_overflow1_2': 75,
|
|
|
|
},
|
|
|
|
'room_type': {
|
|
|
|
'single': 57,
|
|
|
|
'double': 58,
|
|
|
|
'triple': 59,
|
|
|
|
'quadruple': 60,
|
|
|
|
'quintuple': 61
|
|
|
|
},
|
|
|
|
'room_guest': {
|
|
|
|
'single': 57,
|
|
|
|
'double': 58,
|
|
|
|
'triple': 59,
|
|
|
|
'quadruple': 60,
|
|
|
|
'quintuple': 61
|
|
|
|
}
|
2023-12-30 10:27:42 +00:00
|
|
|
}
|
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
ADMINS_PRETIX_ROLE_NAMES = ["Reserved Area admin", "main staff"]
|
2023-12-30 10:27:42 +00:00
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
# Links Products' variants' ids with the internal category name
|
|
|
|
CATEGORIES_LIST_MAP = {
|
|
|
|
'tickets': [],
|
|
|
|
'memberships': [],
|
|
|
|
'sponsorships': [],
|
|
|
|
'tshirts': [],
|
|
|
|
'extra_days': [],
|
|
|
|
'rooms': [],
|
|
|
|
'dailys': []
|
2023-08-06 10:47:07 +00:00
|
|
|
}
|
2024-01-18 00:03:48 +00:00
|
|
|
|
2024-01-08 21:02:27 +00:00
|
|
|
# Create a bunch of "room" items which will get added to the order once somebody gets a room.
|
|
|
|
# Map item_name -> room capacity
|
|
|
|
ROOM_CAPACITY_MAP = {
|
|
|
|
# SACRO CUORE
|
|
|
|
'bed_in_room_main_1': 1,
|
|
|
|
'bed_in_room_main_2': 2,
|
|
|
|
'bed_in_room_main_3': 3,
|
|
|
|
'bed_in_room_main_4': 4,
|
|
|
|
'bed_in_room_main_5': 5,
|
|
|
|
|
|
|
|
# OVERFLOW 1
|
|
|
|
'bed_in_room_overflow1_2': 2,
|
|
|
|
}
|
|
|
|
|
2024-02-14 19:22:56 +00:00
|
|
|
# Autofilled. Maps roomTypeId -> roomName
|
2024-01-21 23:35:44 +00:00
|
|
|
ROOM_TYPE_NAMES = { }
|