]> Some of my projects - localmylist.git/commitdiff
export: Always update if same timestamp
authorHector Martin <redacted>
Sat, 27 Sep 2025 10:51:58 +0000 (19:51 +0900)
committerAPTX <redacted>
Sat, 7 Mar 2026 05:57:32 +0000 (14:57 +0900)
localmylist/mylistexportparsetask.cpp

index 26892518cc02267f590c8a33ac68dc49187852c6..9fe0eb74034ef2711c1e94729cec4c969146410d 100644 (file)
@@ -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;