Fix convert_db script
Database conversion was not taking the "trip" field into account. Also, remove debug message that I accidentally had left in there. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user