-
Notifications
You must be signed in to change notification settings - Fork 1
/
api_config.py
49 lines (47 loc) · 1.13 KB
/
api_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
import os
ACCEPTED_LANGUAGES = ["chs", "cht", "de", "en", "es", "fr", "id", "jp", "kr", "pt", "ru", "th", "vi",
"zh-cn", "zh-tw", "de-de", "en-us", "es-es", "fr-fr", "id-id", "ja-jp", "ko-kr", "pt-pt", "ru-ru",
"th-th", "vi-vn"]
LANGUAGE_PAIRS = {
"chs": "zh-cn",
"cht": "zh-tw",
"de": "de-de",
"en": "en-us",
"es": "es-es",
"fr": "fr-fr",
"id": "id-id",
"jp": "ja-jp",
"kr": "ko-kr",
"pt": "pt-pt",
"ru": "ru-ru",
"th": "th-th",
"vi": "vi-vn",
"zh-cn": "chs",
"zh-tw": "cht",
"de-de": "de",
"en-us": "en",
"es-es": "es",
"fr-fr": "fr",
"id-id": "id",
"ja-jp": "jp",
"ko-kr": "kr",
"pt-pt": "pt",
"ru-ru": "ru",
"th-th": "th",
"vi-vn": "vi",
"all": "all",
"md5": "md5"
}
# App Settings
TOKEN = os.environ['TOKEN']
DOCS_URL = os.environ['DOCS_URL']
# MySQL Settings
DB_HOST = os.environ['DB_HOST']
DB_PORT = int(os.environ['DB_PORT'])
DB_USER = os.environ['DB_USER']
DB_PASSWORD = os.environ['DB_PASSWORD']
DB_NAME = os.environ['DB_NAME']
game_name_id_map = {
"genshin": 1,
"starrail": 2
}