Files
ports/chinese/ibus-array/files/patch-data_updateShortcode.py
2026-10-04 04:07:15 +00:00

12 lines
395 B
Python

--- data/updateShortcode.py.orig 2026-06-05 09:16:48 UTC
+++ data/updateShortcode.py
@@ -18,7 +18,7 @@ def array_updatedb(table_file, table, db_file="array.d
# update the database
for i, j in k:
- cur.execute('INSERT INTO ' + table + ' (keys, ch) VALUES ("' + i + '", "' + j + '");')
+ cur.execute(f'INSERT INTO {table} (keys, ch) VALUES (?, ?);', (i, j))
con.commit()
con.close()