mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Merge pull request #1390 from alphagov/rc-monthly-template-usage-endpoint
Added new endpoint to get the new template stats
This commit is contained in:
@@ -1612,3 +1612,11 @@ class StatsTemplateUsageByMonth(db.Model):
|
||||
nullable=False,
|
||||
default=0
|
||||
)
|
||||
|
||||
def serialize(self):
|
||||
return {
|
||||
'template_id': str(self.template_id),
|
||||
'month': self.month,
|
||||
'year': self.year,
|
||||
'count': self.count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user