From ef399c82fc5ccdd792415f74f88d68ab3046ffa2 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 26 Jan 2013 13:50:11 +0100 Subject: [PATCH] Changed the way the pointed sold is displayed. --- src/api/controller/entries.py | 1 - src/api/model/entries.py | 1 - src/html/index.html | 9 +-------- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/api/controller/entries.py b/src/api/controller/entries.py index 26981df..8cc42e6 100644 --- a/src/api/controller/entries.py +++ b/src/api/controller/entries.py @@ -39,7 +39,6 @@ def get_entries(account_id, year, month): "value": str(i.value), "category": i.category, "sold": str(i.sold), - "pointedsold": str(i.pointedsold), "account_id": i.account_id } for i in query.all()]) diff --git a/src/api/model/entries.py b/src/api/model/entries.py index f19e622..1477b6e 100644 --- a/src/api/model/entries.py +++ b/src/api/model/entries.py @@ -19,7 +19,6 @@ class Entry(db.Model): category = db.Column(db.String(100), nullable = True) sold = column_property(func.sum(value).over(order_by="operation_date, value desc, label desc")) - pointedsold = column_property(func.sum(value).over(partition_by="pointed", order_by="operation_date, value desc, label desc")) def __init__(self, pointed, label, value, account_id, operation_date = None, category = None): self.pointed = pointed diff --git a/src/html/index.html b/src/html/index.html index ad032ff..8e87da4 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -28,7 +28,7 @@