drop pystache comparison

This commit is contained in:
Damien Elmes 2020-01-11 18:15:13 +10:00
parent 7cde51e884
commit dc8b854ada

View file

@ -45,19 +45,8 @@ def render_template(
col: anki.storage._Collection, format: str, fields: Dict[str, str]
) -> str:
"Render a single template."
old_output = anki.template.render(format, fields)
rendered = col.backend.render_template(format, fields)
new_output = apply_custom_filters(rendered, fields)
if old_output != new_output:
print(
f"template rendering didn't match - please report:\n'{old_output}'\n'{new_output}'"
)
# import os
# open(os.path.expanduser("~/temp1.txt"), "w").write(old_output)
# open(os.path.expanduser("~/temp2.txt"), "w").write(new_output)
return new_output
return apply_custom_filters(rendered, fields)
def apply_custom_filters(