From a33b44da42e1a84b5d85a99f4b1b6160aee708b7 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 13 Jan 2015 16:59:23 +0100 Subject: Another batch of strange entries. --- scrapersources/postliste-oep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scrapersources') diff --git a/scrapersources/postliste-oep b/scrapersources/postliste-oep index 2090d41..8d30b1d 100644 --- a/scrapersources/postliste-oep +++ b/scrapersources/postliste-oep @@ -331,7 +331,7 @@ def remove_original(): # script was slightly broken and filled in non-existing entries in the # SQL database. def reparse_strange_entries(datastorage): - for idref in scraperwiki.sqlite.select("journalPostId FROM swdata WHERE caseid IS NULL order by journalPostId"): + for idref in scraperwiki.sqlite.select("journalPostId FROM swdata WHERE caseid IS NULL or scrapestamputc IS NULL order by journalPostId"): id = idref['journalPostId'] if -1 == fetch_oep_entry(id, datastorage): print "Refetching %d failed, flush ID" % id -- cgit v1.2.3