From a0577ff865f17f5988b5192adae263e0ef32b09a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 24 Feb 2024 20:01:13 +0300 Subject: [PATCH] Fix(DB): Fix column encoding --- ChangeLog | 4 ++++ rescan_fs.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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, } -- 2.39.2