diff --git a/titles/idac/data/create_delivery_images.py b/titles/idac/data/create_delivery_images.py index 196081e..ac37925 100644 --- a/titles/idac/data/create_delivery_images.py +++ b/titles/idac/data/create_delivery_images.py @@ -2,12 +2,13 @@ import os import hashlib -def prepare_images(image_folder="./images"): +def prepare_images(image_folder="titles/idac/data/images"): print(f"Preparing image delivery files in {image_folder}...") for file in os.listdir(image_folder): if file.endswith(".png") or file.endswith(".jpg"): - dpg_name = "adv-" + file[:-4].upper() + # dpg_name = "adv-" + file[:-4].upper() + dpg_name = file[:-4] if file.endswith(".png"): dpg_name += ".dpg" else: @@ -22,10 +23,11 @@ def prepare_images(image_folder="./images"): original_image = original_image_file.read() image_hash = hashlib.md5(original_image).hexdigest() print( - f"DPG for {file} not found, creating with hash {image_hash}..." + f"DPG for {file} not found, creating with hash {image_hash.upper()} ..." ) md5_buf = bytes.fromhex(image_hash) dpg_buf = md5_buf + original_image + dpg_name = "adv-" + image_hash.upper() + dpg_name[:-4] with open(os.path.join(image_folder, dpg_name), "wb") as dpg_file: dpg_file.write(dpg_buf) diff --git a/titles/idac/data/stamps/touhou_flandre_scarlet.json b/titles/idac/data/stamps/touhou_flandre_scarlet.json index 23d2a7d..da642f6 100644 --- a/titles/idac/data/stamps/touhou_flandre_scarlet.json +++ b/titles/idac/data/stamps/touhou_flandre_scarlet.json @@ -1,6 +1,6 @@ { "m_stamp_event_id": 25, - "stamp_event_nm": "*フランドール・スカーレットスタンプ", + "stamp_event_nm": "フランドール・スカーレットスタンプ", "url": "https://info-initialdac.sega.jp/2290/", "start_dt": "2023-10-01", "end_dt": "2029-01-01", diff --git a/titles/idac/data/stamps/touhou_remilia_scarlet.json b/titles/idac/data/stamps/touhou_remilia_scarlet.json index 3d917a9..a6fe329 100644 --- a/titles/idac/data/stamps/touhou_remilia_scarlet.json +++ b/titles/idac/data/stamps/touhou_remilia_scarlet.json @@ -1,6 +1,6 @@ { "m_stamp_event_id": 24, - "stamp_event_nm": "*レミリア・スカーレットスタンプ", + "stamp_event_nm": "レミリア・スカーレットスタンプ", "url": "https://info-initialdac.sega.jp/2096/", "start_dt": "2023-10-01", "end_dt": "2029-01-01", diff --git a/titles/idac/data/stamps/touhou_sakuya_izayoi.json b/titles/idac/data/stamps/touhou_sakuya_izayoi.json index 7b98fb3..05d1e28 100644 --- a/titles/idac/data/stamps/touhou_sakuya_izayoi.json +++ b/titles/idac/data/stamps/touhou_sakuya_izayoi.json @@ -1,6 +1,6 @@ { "m_stamp_event_id": 26, - "stamp_event_nm": "*十六夜咲夜スタンプ", + "stamp_event_nm": "十六夜咲夜スタンプ", "url": "https://info-initialdac.sega.jp/2306/", "start_dt": "2023-10-01", "end_dt": "2029-01-01", diff --git a/titles/idac/data/timeRelease_v0150.json b/titles/idac/data/timeRelease_v0150.json index 02d6bf3..694c819 100644 --- a/titles/idac/data/timeRelease_v0150.json +++ b/titles/idac/data/timeRelease_v0150.json @@ -38,6 +38,12 @@ "recommend": 0, "new_status": 0 }, + { + "style_car_id": 12, + "release_status": 1, + "recommend": 0, + "new_status": 0 + }, { "style_car_id": 259, "release_status": 1, @@ -50,6 +56,12 @@ "recommend": 0, "new_status": 0 }, + { + "style_car_id": 264, + "release_status": 1, + "recommend": 0, + "new_status": 0 + }, { "style_car_id": 265, "release_status": 1, @@ -116,18 +128,6 @@ "recommend": 0, "new_status": 0 }, - { - "style_car_id": 1285, - "release_status": 1, - "recommend": 0, - "new_status": 1 - }, - { - "style_car_id": 1286, - "release_status": 1, - "recommend": 0, - "new_status": 1 - }, { "style_car_id": 1536, "release_status": 1, @@ -152,6 +152,12 @@ "recommend": 0, "new_status": 0 }, + { + "style_car_id": 65538, + "release_status": 1, + "recommend": 0, + "new_status": 0 + }, { "style_car_id": 65539, "release_status": 1, @@ -224,6 +230,12 @@ "recommend": 1, "new_status": 0 }, + { + "style_car_id": 66051, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, { "style_car_id": 66304, "release_status": 1, @@ -266,6 +278,24 @@ "recommend": 0, "new_status": 0 }, + { + "style_car_id": 66821, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, + { + "style_car_id": 66822, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, + { + "style_car_id": 67073, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, { "style_car_id": 67328, "release_status": 1, @@ -422,6 +452,18 @@ "recommend": 0, "new_status": 0 }, + { + "style_car_id": 132358, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, + { + "style_car_id": 132608, + "release_status": 1, + "recommend": 0, + "new_status": 1 + }, { "style_car_id": 132864, "release_status": 1, @@ -779,8 +821,7 @@ "timerelease_chapter": 28 } ], - "annaunce_image": [ - ], + "annaunce_image": [], "vs_balance_car": [ { "style_car_id": 0, diff --git a/titles/idac/frontend/idac_index.jinja b/titles/idac/frontend/idac_index.jinja index 4bd10ca..eeecc65 100644 --- a/titles/idac/frontend/idac_index.jinja +++ b/titles/idac/frontend/idac_index.jinja @@ -2,7 +2,7 @@ {% block content %}
{{ profile.username }}
+{{ profile.cash }} D
{{ profile.mileage }} m
+{{ profile.mileage / 1000}} km