make some enums

This commit is contained in:
Anthony Samms
2025-11-14 07:54:22 -05:00
parent d0cdb7b866
commit d06e5276b6
12 changed files with 138 additions and 105 deletions

View File

@@ -7,6 +7,7 @@ import sys
import time
from pathlib import Path
from libs.global_data import Crown
from libs.tja import NoteList, TJAParser, test_encodings
from libs.utils import get_config, global_data
@@ -179,13 +180,13 @@ def build_song_hashes(output_dir=Path("cache")):
continue
if imported_clears[i] == 2:
bads = 0
clear = 2
clear = Crown.FC
elif imported_clears[i] == 1:
bads = None
clear = 1
clear = Crown.CLEAR
else:
bads = None
clear = 0
clear = Crown.NONE
cursor.execute("""
INSERT OR REPLACE INTO scores (hash, en_name, jp_name, diff, score, clear, bad)
VALUES (?, ?, ?, ?, ?, ?, ?)