Dope'ily missed .count() on the query where we're counting

Thanks for catching, Elrond.

This commit sponsored by Graham King.  Thank you!
This commit is contained in:
Christopher Allan Webber 2013-02-25 16:35:05 -06:00
parent e66431f4c3
commit 0c6a34bf5c

View File

@ -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):
"""