Convert value from redis to an int.

This has been properly tested locally with redis enabled.
This commit is contained in:
Rebecca Law
2021-06-29 13:48:38 +01:00
parent ed788cb0bd
commit c501c92bf3
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ def check_service_over_daily_message_limit(key_type, service):
service.id, int(service_stats), service.message_limit)
)
raise TooManyRequestsError(service.message_limit)
return service_stats
return int(service_stats)
def check_rate_limiting(service, api_key):