[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Fix twitter responder for links limit



commit 729a4ad233c2ae7a1bf8a2396e262d3f3422e645
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Tue Oct 15 20:04:09 2019 +0200

    Fix twitter responder for links limit
---
 gettor/parse/twitter.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gettor/parse/twitter.py b/gettor/parse/twitter.py
index 0c8a0fb..1c259d5 100644
--- a/gettor/parse/twitter.py
+++ b/gettor/parse/twitter.py
@@ -120,6 +120,10 @@ class TwitterParser(object):
                 id=hid.hexdigest(), service=request['service']
             )
 
+            num_requests += yield conn.get_num_requests(
+                id=request['id'], service=request['service']
+            )
+
             if num_requests[0][0] < twitter_requests_limit:
                 conn.new_request(
                     id=str(request['id']),

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits