summaryrefslogtreecommitdiffstats
path: root/ogcp/filters.py
blob: 0d705a5d9544e437ec6e8f2d04e5557b66ff0bf0 (plain)
1
2
3
4
5
6
7
from ogcp import app
import re

@app.template_filter('remove_id')
def remove_id(s):
    return re.sub(r'_\d+$', '', s)