Stats are broken #47

Closed
opened 2020-02-26 21:30:02 +01:00 by midgard · 2 comments
midgard commented 2020-02-26 21:30:02 +01:00 (Migrated from git.zeus.gent)
Exception on /stats/ [GET]
Traceback (most recent call last):
  ...
  File "haldis/production/app/views/stats.py", line 20, in stats
    "products": FatDish.amount(),
  File "haldis/production/app/fatmodels.py", line 17, in amount
    return cls.query.count()
AttributeError: type object 'FatDish' has no attribute 'query'
``` Exception on /stats/ [GET] Traceback (most recent call last): ... File "haldis/production/app/views/stats.py", line 20, in stats "products": FatDish.amount(), File "haldis/production/app/fatmodels.py", line 17, in amount return cls.query.count() AttributeError: type object 'FatDish' has no attribute 'query' ```
midgard commented 2020-02-26 21:34:28 +01:00 (Migrated from git.zeus.gent)

Fixed in d9685b00d9.

Fixed in d9685b00d98174e4d85a549dc59870d40d5e264b.
midgard commented 2020-02-26 21:34:28 +01:00 (Migrated from git.zeus.gent)

closed

closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Haldis/haldis#47
No description provided.