diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-12-22 15:23:23 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-12-22 15:23:23 +0100 |
commit | 8b210b9d115b864224a7d43f52bf128078e7a907 (patch) | |
tree | bcafc3d5aa24050559cceb53179b50f4f02dd91d | |
parent | 1b27a0f583a0691b544f82f893fcddfb67178fb9 (diff) |
More compact output.
-rwxr-xr-x | move-postjournal | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/move-postjournal b/move-postjournal index 76b21f7..9832067 100755 --- a/move-postjournal +++ b/move-postjournal @@ -184,7 +184,7 @@ def populate_from_scraper_real(dbcursor, scraper, limit): data.append(dict(row.items())) connection.close() - print "Adding/updating " + str(len(data)) + " " + status + " entries (" + lastscrapestamputc + ")" + print(scraper + ": Adding/updating " + str(len(data)) + " " + status + " entries (" + lastscrapestamputc + ")", end='') skipped = 0 for entry in data: @@ -210,7 +210,7 @@ def populate_from_scraper_real(dbcursor, scraper, limit): except: print entry raise - print "Added/updated " + str(len(data)-skipped) + " " + status + " entries" + print "done" return len(data) - skipped def populate_from_scraper(dbcursor, scraper, limit): @@ -317,7 +317,7 @@ def main(): for scraper in scrapers: print - print "Moving data from " + scraper +# print "Moving data from " + scraper limit = 100000; while limit/2 < populate_from_scraper(dbcursor, scraper, limit): dbconn.commit() |