NDOJ/judge/jinja2/camo.py
2021-12-16 14:16:49 -06:00

8 lines
No EOL
193 B
Python

from judge.utils.camo import client as camo_client
from . import registry
@registry.filter
def camo(url):
if camo_client is None:
return url
return camo_client.rewrite_url(url)