diff --git a/data/patch/31-4/colon-removal.py b/data/patch/31-4/colon-removal.py new file mode 100755 index 0000000..c12cba0 --- /dev/null +++ b/data/patch/31-4/colon-removal.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 +# # -*- coding: utf-8 -*- + +import re +import sys + +sys.path.append("../../convert/31-4") +from db import * + +db.bind(provider="sqlite", filename="../../clean/31-4/data.sqlite3") +db.generate_mapping() + +with db_session: + for i in Outfit.select(): + i.name = re.sub(r"(.+?):(.*)", r"\2\1", i.name)