aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-12-10 21:26:32 +0100
committerPetter Reinholdtsen <pere@hungry.com>2014-12-10 21:26:32 +0100
commit9b2909a8de0f5f1e9e5df7e1b13d6fccd4eaba32 (patch)
tree18dc7894d3d10820d5e021cb1e206e28a9fdf893
parent672edb805214050606dd22af3175e640c0420902 (diff)
Well known ordering when reparsing.
-rw-r--r--scrapersources/postliste-oep2
1 files changed, 1 insertions, 1 deletions
diff --git a/scrapersources/postliste-oep b/scrapersources/postliste-oep
index 87375fa..ca7ab48 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"):
+ for idref in scraperwiki.sqlite.select("journalPostId FROM swdata WHERE caseid IS NULL order by journalPostId"):
id = idref['journalPostId']
if -1 == fetch_oep_entry(id, datastorage):
print "Refetching %d failed, flush ID" % id