Refactor code

This commit is contained in:
Ken Tsang
2017-08-11 17:28:16 +01:00
parent d2a618cf0a
commit 22956b7427
3 changed files with 36 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ def dao_get_inbound_number(inbound_number_id):
@transactional
def dao_set_inbound_number_to_service(service_id, inbound_number):
print('set: {}'.format(inbound_number.id))
inbound_number.service_id = service_id
db.session.add(inbound_number)