Add dao to get inbound sms by id

This commit is contained in:
Imdad Ahad
2017-06-06 17:11:59 +01:00
parent 43aade9ab5
commit 23a501af16
2 changed files with 14 additions and 1 deletions

View File

@@ -47,3 +47,7 @@ def delete_inbound_sms_created_more_than_a_week_ago():
).delete(synchronize_session='fetch')
return deleted
def dao_get_inbound_sms_by_id(inbound_id):
return InboundSms.query.filter_by(id=inbound_id).one()