From 0c6a34bf5ceee7ec6b95287d4464772a0618ff8d Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 25 Feb 2013 16:35:05 -0600 Subject: [PATCH] Dope'ily missed .count() on the query where we're counting Thanks for catching, Elrond. This commit sponsored by Graham King. Thank you! --- mediagoblin/db/migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): """ -- 2.25.1