fix
authorMart Lubbers <mart@martlubbers.net>
Thu, 25 Sep 2014 13:06:50 +0000 (15:06 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 25 Sep 2014 13:06:50 +0000 (15:06 +0200)
program/everything/crawler.py
program/everything/input_app.py

index 7d164cb..52c3f2c 100644 (file)
@@ -47,8 +47,8 @@ class Crawler():
     def list_names(self):
         return self.entries.keys()
 
-    def add_entry(self, d, force=False):
-        if d['name'] in self.entries and not force:
+    def add_entry(self, d):
+        if d['name'] in self.entries:
             raise Exception('That name is already present')
         else:
             self.entries[d['name']] = d
index c13ffc8..107cd69 100644 (file)
@@ -151,7 +151,8 @@ def data_main(d, force=False):
     d['summarydawg'] = nodelists['Summary']
     del(d['matchdata'])
     crawl = crawler.Crawler()
-    crawl.add_entry(d, force)
+    crawl.add_entry(d)
+    status = crawl.write()
     return crawl.list_names()