7 lines
233 B
Python
7 lines
233 B
Python
import sqlite3
|
|
db = sqlite3.connect('/home/hmo/web-dashboard/data/mofin.db')
|
|
n = db.execute("UPDATE holding_strategies SET currency='CNY' WHERE currency='HKD'").rowcount
|
|
db.commit()
|
|
print(f"Fixed {n} decision currencies")
|
|
db.close()
|