You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let _ = db_transaction.execute("INSERT OR REPLACE INTO torrents (info_hash, completed) VALUES (?, ?)",&[info_hash.to_string(), completed.to_string()]);
85
+
let _ = db_transaction.execute("INSERT OR IGNORE INTO torrents (info_hash, completed) VALUES (?, ?)",&[info_hash.to_string(), completed.to_string()]);
86
+
let _ = db_transaction.execute("UPDATE torrents SET completed = ? WHERE info_hash = ?",&[completed.to_string(), info_hash.to_string()]);
0 commit comments