Browse Source

reset queue on source change

David 10 năm trước cách đây
mục cha
commit
8c124e5198
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      parser.py

+ 1 - 0
parser.py

@@ -9,6 +9,7 @@ from news import News
 from paid_parser import PaidParser
 
 def parseSource(s):
+    q=Queue()
     num_worker_threads=10
     sel=None
     rss=False