From 9b2909a8de0f5f1e9e5df7e1b13d6fccd4eaba32 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 10 Dec 2014 21:26:32 +0100 Subject: Well known ordering when reparsing. --- 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 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 -- cgit v1.2.3