Use %-strings, not f-string

This commit is contained in:
rob 2020-04-20 12:59:04 -07:00
parent 2a93ab178d
commit 5dadd32a08

View File

@ -144,7 +144,7 @@ def set_mac_wallpaper(img):
for pic in pictures:
if pic:
sql += 'insert into preferences (key, data_id, picture_id) '
sql += f'values(1, {new_entry}, {pic}); '
sql += 'values(1, %s, %s); ' % (new_entry, pic)
subprocess.call(["sqlite3", db_path, sql])