✏️ New patch: colon removal
This commit is contained in:
parent
871984e9e7
commit
93e90d231b
1 changed files with 15 additions and 0 deletions
15
data/patch/31-4/colon-removal.py
Executable file
15
data/patch/31-4/colon-removal.py
Executable 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)
|
Loading…
Reference in a new issue