diff kallithea/model/changeset_status.py @ 5926:133686b535d1

pullrequests: clarifying comment about how weird status versioning is
author Mads Kiilerich <madski@unity3d.com>
date Mon, 23 May 2016 18:02:33 +0200
parents 0590e974ac35
children f4c712ab3e40
line wrap: on
line diff
--- a/kallithea/model/changeset_status.py	Mon May 23 18:02:33 2016 +0200
+++ b/kallithea/model/changeset_status.py	Mon May 23 18:02:33 2016 +0200
@@ -52,6 +52,7 @@
         q = ChangesetStatus.query() \
             .filter(ChangesetStatus.repo == repo)
         if not with_revisions:
+            # only report the latest vote across all users! TODO: be smarter!
             q = q.filter(ChangesetStatus.version == 0)
 
         if revision: