File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
"md5" : "md5"
39
39
}
40
40
# App Settings
41
- TOKEN = os .environ [ ' TOKEN' ]
42
- DOCS_URL = os .environ [ ' DOCS_URL' ]
43
- API_VERSION = os .environ [ 'IMAGE_TAG' ]
41
+ TOKEN = os .getenv ( " TOKEN" , "APITOKEN" )
42
+ DOCS_URL = os .getenv ( " DOCS_URL" , "/api/v1/docs" )
43
+ API_VERSION = os .getenv ( "API_VERSION" , "v1" )
44
44
45
45
# MySQL Settings
46
46
DB_HOST = os .getenv ('DB_HOST' , None )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def fetch_genshin_impact_update():
40
40
this_name_hash_id = str (item ["NameTextMapHash" ])
41
41
this_item_id = int (item ["id" ])
42
42
name_list = [
43
- lang_dict [this_name_hash_id ]. replace ( "'" , " \\ '" ) if this_name_hash_id in lang_dict .keys () else "" for
43
+ lang_dict [this_name_hash_id ] if this_name_hash_id in lang_dict .keys () else "" for
44
44
lang_dict in dict_list
45
45
]
46
46
lang_dict = {
@@ -104,7 +104,7 @@ def fetch_starrail_update():
104
104
raise ValueError (f"Unknown item type: { item } " )
105
105
106
106
name_list = [
107
- lang_dict [this_name_hash_id ]. replace ( "'" , " \\ '" ) if this_name_hash_id in lang_dict .keys () else "" for
107
+ lang_dict [this_name_hash_id ] if this_name_hash_id in lang_dict .keys () else "" for
108
108
lang_dict in dict_list
109
109
]
110
110
lang_dict = {
@@ -192,7 +192,7 @@ def is_valid_weapon_item(name_hash_value: str):
192
192
this_name_hash_id = item [name_hash_id ]
193
193
this_item_id = item [item_id ]
194
194
name_list = [
195
- lang_dict [this_name_hash_id ]. replace ( "'" , " \\ '" ) if this_name_hash_id in lang_dict .keys () else "" for
195
+ lang_dict [this_name_hash_id ] if this_name_hash_id in lang_dict .keys () else "" for
196
196
lang_dict in dict_list
197
197
]
198
198
lang_dict = {
You can’t perform that action at this time.
0 commit comments