summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-02-02 08:49:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-02-02 08:49:33 +0000
commita7eea94be32643918316a1ad8290a4a87eb874f6 (patch)
tree15faa868f3754247039d7dd338198b61a21a5717
parentOnly redirect to HTTPS in production (diff)
downloadgentoobrowse-a7eea94be32643918316a1ad8290a4a87eb874f6.tar.bz2
gentoobrowse-a7eea94be32643918316a1ad8290a4a87eb874f6.tar.xz
gentoobrowse-a7eea94be32643918316a1ad8290a4a87eb874f6.zip
Home page ebuilds should be grouped by firstseen, not moddate
-rw-r--r--gentoobrowse/src/packages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse/src/packages.cpp b/gentoobrowse/src/packages.cpp
index 04c4a69..c3e6d6c 100644
--- a/gentoobrowse/src/packages.cpp
+++ b/gentoobrowse/src/packages.cpp
@@ -68,7 +68,7 @@ namespace GentooBrowse {
for(const auto & ebuild : ebuilds) {
auto & p = packages[ebuild->packageid];
auto & c = categories[p->categoryid];
- auto & s = _responseModel->syncs[ebuild->moddate.substr(0, 10)];
+ auto & s = _responseModel->syncs[ebuild->firstseen.substr(0, 10)];
bool isTracked = std::find(tracked.begin(), tracked.end(), p->packageid) != tracked.end();
auto & pw = s[{ isTracked, c->name }][{ isTracked, p->name }];
if (!pw.detail) pw.detail = p;