aboutsummaryrefslogtreecommitdiff
path: root/chinese/ibus-array/files/patch-data_updateShortcode.py
blob: 0b7aacf0038787f4da9c99f29c110aec994368eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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()