Merge branch 'master' into update-sms-rate

This commit is contained in:
Rebecca Law
2017-04-25 10:15:54 +01:00
4 changed files with 36 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ def get_alternative_sms_provider(identifier):
def get_current_provider(notification_type):
return ProviderDetails.query.filter_by(
notification_type=notification_type
notification_type=notification_type,
active=True
).order_by(
asc(ProviderDetails.priority)
).first()