NDOJ/judge/jinja2/camo.py

10 lines
195 B
Python
Raw 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
return camo_client.rewrite_url(url)