From: Hector Martin Date: Sat, 27 Sep 2025 10:51:58 +0000 (+0900) Subject: export: Always update if same timestamp X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=ad89dec90ddc2f2da489a3011f57f7639533dd51;p=localmylist.git export: Always update if same timestamp --- diff --git a/localmylist/mylistexportparsetask.cpp b/localmylist/mylistexportparsetask.cpp index 2689251..9fe0eb7 100644 --- a/localmylist/mylistexportparsetask.cpp +++ b/localmylist/mylistexportparsetask.cpp @@ -245,7 +245,7 @@ qDebug() << "Adding new Anime"; return; } - if (current.anidbUpdate < a.anidbUpdate) + if (current.anidbUpdate <= a.anidbUpdate) { qDebug() << "Updating Anime" << current.aid; if (a.anidbUpdate.isValid()) @@ -282,7 +282,7 @@ qDebug() << "Updating Anime" << current.aid; if (a.tempVotes) current.tempVotes = a.tempVotes; - if (current.myUpdate < exportDate) + if (current.myUpdate <= exportDate) { qDebug() << "My var update" << current.aid; current.myUpdate = exportDate; @@ -397,7 +397,7 @@ qDebug() << "Adding new Episode"; return; } - if (current.anidbUpdate < e.anidbUpdate) + if (current.anidbUpdate <= e.anidbUpdate) { qDebug() << "Updating Episode" << current.eid; if (e.aid) @@ -427,7 +427,7 @@ qDebug() << "Updating Episode" << current.eid; if (e.votes) current.votes = e.votes; - if (current.myUpdate < exportDate) + if (current.myUpdate <= exportDate) { qDebug() << "My var update" << current.eid; current.myUpdate = exportDate; @@ -589,7 +589,7 @@ qDebug() << "Adding new File"; return; } - if (true) + if (current.anidbUpdate <= f.anidbUpdate) { qDebug() << "Updating File" << current.fid; if (f.eid) @@ -640,7 +640,7 @@ qDebug() << "Updating File" << current.fid; current.entryUpdate = QDateTime::currentDateTime(); - if (true) + if (current.myUpdate <= exportDate) { qDebug() << "My var update" << current.fid; current.myUpdate = exportDate;