From: Oleg Broytman Date: Sat, 24 Feb 2024 17:01:13 +0000 (+0300) Subject: Fix(DB): Fix column encoding X-Git-Tag: 5.1.2^0 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a0577ff865f17f5988b5192adae263e0ef32b09a;p=xsetbg.git Fix(DB): Fix column encoding --- diff --git a/ChangeLog b/ChangeLog index 80643f1..0b3f0aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Version 5.1.2 (2024-02-25) + + DB: Fix column encoding. + Version 5.1.1 (2024-02-24) Python 3: Fix filesystem encoding. diff --git a/rescan_fs.py b/rescan_fs.py index 9688de9..24302fe 100755 --- a/rescan_fs.py +++ b/rescan_fs.py @@ -67,7 +67,7 @@ with SQLiteMassInsert() as txn: try: row = xsetbg_db.byFull_name(full_name) except SQLObjectNotFound: - values = {'full_name': full_name.encode('utf-8'), + values = {'full_name': full_name, 'is_image': is_image(full_name), 'flag': True, }