Removed prints

This commit is contained in:
João Pedro 2019-03-07 12:09:44 +13:00
parent 1b6994dba1
commit 914a910359
2 changed files with 0 additions and 2 deletions

View File

@ -124,7 +124,6 @@ class SimpleRateThrottle(BaseThrottle):
self.history = self.cache.get(self.key, []) self.history = self.cache.get(self.key, [])
self.now = self.timer() self.now = self.timer()
print(self.history)
# Drop any requests from the history which have now passed the # Drop any requests from the history which have now passed the
# throttle duration # throttle duration

View File

@ -356,7 +356,6 @@ class APIView(View):
request_allowed = all( request_allowed = all(
[throttle.allow_request(request, self) for throttle in throttles] [throttle.allow_request(request, self) for throttle in throttles]
) )
print(request_allowed, [throttle.allow_request(request, self) for throttle in throttles])
if request_allowed: if request_allowed:
[throttle.throttle_success(request, self) for throttle in throttles] [throttle.throttle_success(request, self) for throttle in throttles]
else: else: