1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-07-14 23:00:06 +02:00

Adjust RateController to current observations

This commit is contained in:
Alexander Graf 2020-08-31 20:29:21 +02:00
parent 438669b954
commit 6d3c73eec3

View File

@ -577,7 +577,7 @@ class RateController:
# Not static, to allow for the count_per_sliding_window to depend on context-inherent properties, such as
# whether we are logged in.
# pylint:disable=no-self-use
return 100 if query_type in ['iphone', 'other'] else 200
return 75 if query_type in ['iphone', 'other'] else 200
def _reqs_in_sliding_window(self, query_type: Optional[str], current_time: float, window: float) -> List[float]:
if query_type is not None: