diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-12-22 15:28:51 +0100 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-12-22 15:28:51 +0100 |
commit | ef2d1965fab8bc495a98be3daf86766e0f12b9ed (patch) | |
tree | b3ee73cf3703a5c75867c9081c5f73a68f4c0e8b | |
parent | 0a7d3111e4f68e5575db67c5053a26bfd9e908b8 (diff) |
Flush stdout too.
-rwxr-xr-x | move-postjournal | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/move-postjournal b/move-postjournal index 5da04eb..b7f09a7 100755 --- a/move-postjournal +++ b/move-postjournal @@ -144,6 +144,7 @@ def insert_entry(dbcursor, entry): def populate_from_scraper_real(dbcursor, scraper, limit): lastscrapestamputc = '' sys.stdout.write(scraper + ": ") + sys.stdout.flush() if True: try: sql = "SELECT MAX(scrapestamputc) FROM %s WHERE scraper = '%s'" % (dbtable, scraper) @@ -186,6 +187,7 @@ def populate_from_scraper_real(dbcursor, scraper, limit): connection.close() sys.stdout.write("Adding/updating " + str(len(data)) + " " + status + " entries (" + lastscrapestamputc + ")") + sys.stdout.flush() skipped = 0 for entry in data: |