Mercurial > public > sg101
diff gpp/legacy/management/commands/import_old_users.py @ 291:a6357f2bcbbc
Added a legacy command to import old news stories.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 24 Dec 2010 20:45:33 +0000 |
parents | 64c188a9d31f |
children | 254db4cb6a86 |
line wrap: on
line diff
--- a/gpp/legacy/management/commands/import_old_users.py Fri Dec 24 05:28:58 2010 +0000 +++ b/gpp/legacy/management/commands/import_old_users.py Fri Dec 24 20:45:33 2010 +0000 @@ -89,7 +89,7 @@ for row in self.reader: self.process_row(row) num_rows += 1 - if num_rows % 20 == 0: + if self.show_progress and num_rows % 20 == 0: sys.stdout.write('.') sys.stdout.flush() except csv.Error, e: