Create new cache handler #680
Annotations
1 error and 1 warning
/home/runner/work/online-judge/online-judge/judge/caching.py#L4
from django.db import models
import hashlib
from inspect import signature
MAX_NUM_CHAR = 50
+
# Utility functions
def arg_to_str(arg):
"""Convert arguments to strings for generating cache keys."""
if hasattr(arg, "id"):
|
Run linters
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|