mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +03:00
Removed prints
This commit is contained in:
parent
1b6994dba1
commit
914a910359
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user