Commit Diff


commit - fcceba290daab3a010f6602c6108dcf17490ac7a
commit + 426c2b96a7f65a8c417dc86d2b5e80283f46de71
blob - c2194da77ce1d0e7ab77ef1f4d8cd273e2b9cad3
blob + 4cea23c09d220be2f0cccc1a5185aa9eafca18a8
--- ronk.py
+++ ronk.py
@@ -29,12 +29,11 @@ def main(db, rss_url, server_url, token):
     honk_server = requests.Session()
     for item in collected:
         key = item.get('link')
-        if key:
+        if key and key not in db:
             params = dict(action="honk", token=token, noise=format_item(item), format="html")
             resp = honk_server.post(server_url, params=params)
             resp.raise_for_status()
-            print(resp.text)
-            db[key] = "1"
+            db[key] = resp.text or "1"
 
 
 if __name__ == '__main__':