diff --git a/app/DataBase/merge.py b/app/DataBase/merge.py index e28073e..7679821 100644 --- a/app/DataBase/merge.py +++ b/app/DataBase/merge.py @@ -13,6 +13,7 @@ def merge_databases(source_paths, target_path): if not os.path.exists(source_path): break db = sqlite3.connect(source_path) + db.text_factory = bytes cursor = db.cursor() sql = ''' SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra