From: Christopher Allan Webber Date: Mon, 25 Feb 2013 22:35:05 +0000 (-0600) Subject: Dope'ily missed .count() on the query where we're counting X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0c6a34bf5ceee7ec6b95287d4464772a0618ff8d;p=mediagoblin.git Dope'ily missed .count() on the query where we're counting Thanks for catching, Elrond. This commit sponsored by Graham King. Thank you! --- diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index 3c997b94..05dc31ef 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -219,7 +219,7 @@ def mediaentry_new_slug_era(db): return db.execute( media_table.select( media_table.c.uploader==uploader, - media_table.c.slug==slug)).first().tbl_row_count + media_table.c.slug==slug).count()).first().tbl_row_count def append_garbage_till_unique(row, new_slug): """