出题人
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user