From 5ab890c1f4b188e15cf8e2a6b08ba8d3cf23a776 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 25 Sep 2014 15:06:50 +0200 Subject: [PATCH] fix --- program/everything/crawler.py | 4 ++-- program/everything/input_app.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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() -- 2.20.1