From: Mart Lubbers Date: Thu, 25 Sep 2014 13:06:50 +0000 (+0200) Subject: fix X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=5ab890c1f4b188e15cf8e2a6b08ba8d3cf23a776;p=bsc-thesis1415.git fix --- diff --git a/program/everything/crawler.py b/program/everything/crawler.py index 7d164cb..52c3f2c 100644 --- a/program/everything/crawler.py +++ b/program/everything/crawler.py @@ -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 diff --git a/program/everything/input_app.py b/program/everything/input_app.py index c13ffc8..107cd69 100644 --- a/program/everything/input_app.py +++ b/program/everything/input_app.py @@ -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()