aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2015-01-13 16:59:23 +0100
committerPetter Reinholdtsen <pere@hungry.com>2015-01-13 16:59:23 +0100
commita33b44da42e1a84b5d85a99f4b1b6160aee708b7 (patch)
tree0153783cea80d85ef9bbb8faac011d684c2e9ede
parentfab0b706afb42fee1363b50dd680a8d2ef36f62f (diff)
Another batch of strange entries.
-rw-r--r--scrapersources/postliste-oep2
1 files changed, 1 insertions, 1 deletions
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