🗃️ Apply patch to 31-4 database

This commit is contained in:
zhbaor 2022-10-16 11:18:23 +08:00
parent 93e90d231b
commit c7bbe9521d
4 changed files with 32 additions and 2 deletions

Binary file not shown.

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:
w = Ranged.get(name="危机符文")
w.mechanism = re.sub(r"月底", "越低", w.mechanism)

15
data/patch/31-4/gold-digger.py Executable file
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 w in Melee.select(name="黄金匕首"):
w.name = "掘金镐"

View file

@ -3,10 +3,10 @@ import sys
import requests
import io
sys.path.append("../../convert/31-2")
sys.path.append("../../convert/31-4")
from db import *
db.bind(provider="sqlite", filename="../../clean/31-2/data.sqlite3")
db.bind(provider="sqlite", filename="../../clean/31-4/data.sqlite3")
db.generate_mapping()