Add files via upload

This commit is contained in:
purr
2025-04-04 21:30:31 +09:00
committed by GitHub
parent 5763658177
commit 966e7691a3
90 changed files with 20938 additions and 0 deletions

14
app/state/cache.py Normal file
View File

@@ -0,0 +1,14 @@
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from app.objects.beatmap import Beatmap
from app.objects.beatmap import BeatmapSet
bcrypt: dict[bytes, bytes] = {} # {bcrypt: md5, ...}
beatmap: dict[str | int, Beatmap] = {} # {md5: map, id: map, ...}
beatmapset: dict[int, BeatmapSet] = {} # {bsid: map_set}
unsubmitted: set[str] = set() # {md5, ...}
needs_update: set[str] = set() # {md5, ...}