euscanwww/api: remove traces
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
0d5e1e0901
commit
204c53b66f
@ -36,7 +36,6 @@ class StatisticsHandler(AnonymousBaseHandler):
|
|||||||
allowed_methods = ('GET',)
|
allowed_methods = ('GET',)
|
||||||
|
|
||||||
def read(self, request):
|
def read(self, request):
|
||||||
print request
|
|
||||||
data = {}
|
data = {}
|
||||||
data['n_packaged'] = xint(Package.objects.aggregate(Sum('n_packaged'))['n_packaged__sum'])
|
data['n_packaged'] = xint(Package.objects.aggregate(Sum('n_packaged'))['n_packaged__sum'])
|
||||||
data['n_overlay'] = xint(Package.objects.aggregate(Sum('n_overlay'))['n_overlay__sum'])
|
data['n_overlay'] = xint(Package.objects.aggregate(Sum('n_overlay'))['n_overlay__sum'])
|
||||||
@ -130,10 +129,8 @@ class PackageHandler(AnonymousBaseHandler):
|
|||||||
|
|
||||||
herds = []
|
herds = []
|
||||||
for herd in package.herds.all():
|
for herd in package.herds.all():
|
||||||
print herd
|
|
||||||
herds.append(model_to_dict(herd, ['herd']))
|
herds.append(model_to_dict(herd, ['herd']))
|
||||||
|
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
for maintainer in package.maintainers.all():
|
for maintainer in package.maintainers.all():
|
||||||
maintainers.append(model_to_dict(maintainer, ['name', 'email']))
|
maintainers.append(model_to_dict(maintainer, ['name', 'email']))
|
||||||
|
Loading…
Reference in New Issue
Block a user