コード例 #1
0
ファイル: prawmagic.py プロジェクト: zahmadpost/reddit_data
 def update_with_mod(self, response_headers):
     RateLimiter.update_without_mod(self, response_headers)
     if self.next_request_timestamp != self.reset_timestamp:
         now = time()
         delta = self.next_request_timestamp - now
         self.next_request_timestamp = now + delta / FETCHES