出题人

This commit is contained in:
2025-10-03 02:03:19 +08:00
parent 893b2aba79
commit ce2a4629da
4 changed files with 41 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ class CacheKey:
waiting_queue = "waiting_queue"
contest_rank_cache = "contest_rank_cache"
website_config = "website_config"
problem_authors = "problem_authors"
class Difficulty(Choices):

View File

@@ -57,11 +57,6 @@ def datetime2str(value, format="iso-8601"):
return value
return value.strftime(format)
def timestamp2utcstr(value):
return datetime.datetime.utcfromtimestamp(value).isoformat()
def natural_sort_key(s, _nsre=re.compile(r"(\d+)")):
return [int(text) if text.isdigit() else text.lower()
for text in re.split(_nsre, s)]