aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-02-25 16:35:05 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-02-25 16:35:05 -0600
commit0c6a34bf5ceee7ec6b95287d4464772a0618ff8d (patch)
treef1377f48369db649b6d998b6346b6450b3f3bac6
parente66431f4c39e58cccfd356e0300a246f1494b15e (diff)
downloadmediagoblin-0c6a34bf5ceee7ec6b95287d4464772a0618ff8d.tar.lz
mediagoblin-0c6a34bf5ceee7ec6b95287d4464772a0618ff8d.tar.xz
mediagoblin-0c6a34bf5ceee7ec6b95287d4464772a0618ff8d.zip
Dope'ily missed .count() on the query where we're counting
Thanks for catching, Elrond. This commit sponsored by Graham King. Thank you!
-rw-r--r--mediagoblin/db/migrations.py2
1 files changed, 1 insertions, 1 deletions
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):
"""