Updated for pr comments

This commit is contained in:
Adam Shimali
2016-06-15 16:19:28 +01:00
parent b33312b855
commit c268401554
3 changed files with 7 additions and 7 deletions

View File

@@ -29,10 +29,7 @@ register_errors(template)
def _content_count_greater_than_limit(content, template_type):
template = Template({'content': content, 'template_type': template_type})
if template_type == 'sms' and \
template.content_count > current_app.config.get('SMS_CHAR_COUNT_LIMIT'):
return True
return False
return template_type == 'sms' and template.content_count > current_app.config.get('SMS_CHAR_COUNT_LIMIT')
@template.route('', methods=['POST'])