diff options
author | cos <cos> | 2024-07-03 00:23:57 +0200 |
---|---|---|
committer | cos <cos> | 2024-07-03 00:24:09 +0200 |
commit | 6cc2e77922bc9c7718255b94d7b1436fbb99f754 (patch) | |
tree | 4949bbae80761e78afa6a85c40ece154b684afc5 | |
parent | 399d622d7e558b0bad558e89141062e41371b3ec (diff) | |
download | AntennaPodDbFixer-6cc2e77922bc9c7718255b94d7b1436fbb99f754.zip |
Clean-up some spilled red paint
-rwxr-xr-x | AntennaPodDbFixer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AntennaPodDbFixer.py b/AntennaPodDbFixer.py index b4c2705..abbfbf9 100755 --- a/AntennaPodDbFixer.py +++ b/AntennaPodDbFixer.py @@ -65,7 +65,7 @@ for table in tables: table = table["name"] print("Copying " + table + "...") columns = query(emptyPath, "SELECT GROUP_CONCAT(NAME,',') AS columns FROM PRAGMA_TABLE_INFO('" + table + "')")[0]["columns"] - + query(outputPath, "DELETE FROM " + table) query(outputPath, "attach '" + corruptedPath + "' AS old; INSERT INTO main." + table + " SELECT " + columns + " from old." + table + ";") print() |