diff --git a/convert_db.py b/convert_db.py index 75025e3..47e128b 100644 --- a/convert_db.py +++ b/convert_db.py @@ -59,6 +59,8 @@ for ban in bans: post["thumb_path"] = ban["thumb_path"] post["reason"] = ban["reason"] + if "trip" not in post: + post["trip"] = None if "nsfw" not in post: post["nsfw"] = False if "thumb" not in post: @@ -95,8 +97,6 @@ for ban in bans: if "tim" not in post: post["tim"] = None - print(type(post['w'])) - new_db.execute( """ INSERT INTO bans (action, board, length, now, name, trip, com, time, sub, nsfw, thumb, ext, w, h, tn_w, tn_h, md5, fsize, filename, tim, thumb_path, reason)