diff options
| author | Silarn <jrim@rimpo.org> | 2019-04-12 21:28:47 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-04-12 21:28:47 -0500 |
| commit | 5ea25f03ce9f674cd539c08ed5895eadde52e8ce (patch) | |
| tree | a3b4fcaac6e6b32c0a27bde8ecb907a44fff08c5 | |
| parent | 81b9784615129332a17264de2bb91dc2d6ddd95f (diff) | |
Rework logic - we want updates that are newer than the last update - 1hr
| -rw-r--r-- | src/modinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index ad5c5fb9..c1974152 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -350,7 +350,7 @@ std::set<QSharedPointer<ModInfo>> ModInfo::filteredMods(QString gameName, QVaria QVariantMap update = result.toMap(); std::copy_if(s_Collection.begin(), s_Collection.end(), std::inserter(finalMods, finalMods.end()), [=](QSharedPointer<ModInfo> info) -> bool { if (info->getNexusID() == update["mod_id"].toInt() && info->getGameName().compare(gameName, Qt::CaseInsensitive) == 0) - if (info->getLastNexusUpdate() > QDateTime::fromSecsSinceEpoch(update["latest_file_update"].toInt(), Qt::UTC).addSecs(-3600)) + if (info->getLastNexusUpdate().addSecs(-3600) < QDateTime::fromSecsSinceEpoch(update["latest_file_update"].toInt(), Qt::UTC)) return true; return false; }); |
