Browse Source

use events

David 9 years atrás
parent
commit
57a39b382f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      parser.py

+ 2 - 2
parser.py

@@ -108,7 +108,7 @@ def news_worker(source, kw, d, q):
 
 # TODO influx start
 
-post_data('event', {'type': 'start'}, 1)
+post_data('event', 'start')
 start = time()
 sources = db().sources()
 db().purge_error()
@@ -130,4 +130,4 @@ print("[%s] %d/%d new articles, total time %d sec" %
       (strftime("%H:%M:%S"), new, tot, time()-start))
 print("#" * 75)
 # TODO influx end
-post_data('even', {'type': 'end'}, 0)
+post_data('event', 'end')