NDOJ/judge/jinja2/camo.py

8 lines
193 B
Python
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
from judge.utils.camo import client as camo_client
from . import registry
@registry.filter
def camo(url):
if camo_client is None:
return url
2021-12-16 20:16:49 +00:00
return camo_client.rewrite_url(url)