mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +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.now = self.timer()
|
||||
print(self.history)
|
||||
|
||||
# Drop any requests from the history which have now passed the
|
||||
# throttle duration
|
||||
|
|
|
@ -356,7 +356,6 @@ class APIView(View):
|
|||
request_allowed = all(
|
||||
[throttle.allow_request(request, self) for throttle in throttles]
|
||||
)
|
||||
print(request_allowed, [throttle.allow_request(request, self) for throttle in throttles])
|
||||
if request_allowed:
|
||||
[throttle.throttle_success(request, self) for throttle in throttles]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user