From 98a0aed80768199a6a03b67784fa8ea024acb811 Mon Sep 17 00:00:00 2001 From: Faraphel Date: Mon, 17 Jan 2022 12:26:40 +0100 Subject: [PATCH] default name for a track is now a single space, nothing would be replaced by the sha1 --- ct_config.json | 1 - source/Track.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ct_config.json b/ct_config.json index ae80a32..815f05b 100644 --- a/ct_config.json +++ b/ct_config.json @@ -105,7 +105,6 @@ "tag_retro": "Retro", "default_track": { - "name":"", "music":"T32", "special":"T32", "author":"MrFluffy", diff --git a/source/Track.py b/source/Track.py index 80770cc..4040a49 100644 --- a/source/Track.py +++ b/source/Track.py @@ -23,7 +23,7 @@ def check_file_sha1(file: str, excepted_sha1: str) -> int: class Track: - def __init__(self, name: str = "", author: str = "Nintendo", special: str = "T11", music: str = "T11", + def __init__(self, name: str = " ", author: str = "Nintendo", special: str = "T11", music: str = "T11", sha1: str = None, since_version: str = None, score: int = -1, warning: int = 0, note: str = "", track_wu8_dir: str = "./file/Track-WU8/", track_szs_dir: str = "./file/Track/", track_version: str = None, tags: list = [], *args, **kwargs):