add dao function to get notification stats for a server for toady only

This commit is contained in:
Leo Hemsted
2016-07-22 15:16:24 +01:00
parent 95af32f289
commit fd96c854e1
3 changed files with 37 additions and 3 deletions

View File

@@ -319,12 +319,14 @@ def sample_notification(notify_db,
to_field=None,
status='created',
reference=None,
created_at=datetime.utcnow(),
created_at=None,
content_char_count=160,
create=True,
personalisation=None,
api_key_id=None,
key_type=KEY_TYPE_NORMAL):
if created_at is None:
created_at = datetime.utcnow()
if service is None:
service = sample_service(notify_db, notify_db_session)
if template is None: