aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Bacherikov <slava@bacher09.org>2012-08-10 23:01:36 +0300
committerSlava Bacherikov <slava@bacher09.org>2012-08-10 23:01:36 +0300
commitc4d1fec24351222354c75790503d5b90e6635814 (patch)
tree41901e6c12f25e97dd36f765e033452392b3cc93
parentAdd pygments to Requirements (diff)
downloadgentoo-packages-c4d1fec24351222354c75790503d5b90e6635814.tar.gz
gentoo-packages-c4d1fec24351222354c75790503d5b90e6635814.tar.bz2
gentoo-packages-c4d1fec24351222354c75790503d5b90e6635814.zip
Fix bug in simplestats
-rw-r--r--gpackages/apps/packages/management/commands/simplestats.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/gpackages/apps/packages/management/commands/simplestats.py b/gpackages/apps/packages/management/commands/simplestats.py
index b0c6a53..2e07372 100644
--- a/gpackages/apps/packages/management/commands/simplestats.py
+++ b/gpackages/apps/packages/management/commands/simplestats.py
@@ -10,10 +10,10 @@ class Command(BaseCommand):
help = 'Will show some stats for repos'
def handle(self, *args, **options):
query = models.RepositoryModel.objects.annotate(
- packages_count = Count('packagemodel', distinct = True),
- ebuilds_count = Count('packagemodel__ebuildmodel', distinct = True),
- maintainers_count = Count('packagemodel__maintainers', distinct = True),
- herds_count = Count('packagemodel__herds', distinct = True))
+ packages_countr = Count('packagemodel', distinct = True),
+ ebuilds_countr = Count('packagemodel__ebuildmodel', distinct = True),
+ maintainers_countr = Count('packagemodel__maintainers', distinct = True),
+ herds_countr = Count('packagemodel__herds', distinct = True))
self.stdout.write('"%s" "%s" "%s" "%s" "%s"\n' %
('Repo name', 'Packages', 'Ebuilds' , 'Maintainers', 'Herds'))
@@ -21,7 +21,7 @@ class Command(BaseCommand):
for repo_object in query:
self.stdout.write("%-25s %+9s %+9s %+9s %+9s\n" % (
repo_object.name,
- repo_object.packages_count,
- repo_object.ebuilds_count,
- repo_object.maintainers_count,
- repo_object.herds_count))
+ repo_object.packages_countr,
+ repo_object.ebuilds_countr,
+ repo_object.maintainers_countr,
+ repo_object.herds_countr))