✏️ New patch: colon removal

This commit is contained in:
zhbaor 2022-10-16 11:08:20 +08:00
parent 871984e9e7
commit 93e90d231b

View file

@ -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)