diff options
| author | rr- | 2016-08-15 18:08:19 +0200 |
|---|---|---|
| committer | rr- | 2016-08-16 17:22:33 +0200 |
| commit | a224297c4fd5be2a3f4ea7f573be4a366ab40bc8 (patch) | |
| tree | c9844dc8de3bf234fd671a6b81394b4f1f915c2a /server | |
| parent | 48af5160df4c1400204650f7000cb04d5c643659 (diff) | |
server/db: poor fix for tag aliases' order
It's a hack, but it seems to work okay.
Diffstat (limited to 'server')
| -rw-r--r-- | server/szurubooru/db/tag.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/szurubooru/db/tag.py b/server/szurubooru/db/tag.py index 2bdac53..5dae8c8 100644 --- a/server/szurubooru/db/tag.py +++ b/server/szurubooru/db/tag.py @@ -100,6 +100,7 @@ class Tag(Base): first_name = column_property( select([TagName.name]) .where(TagName.tag_id == tag_id) + .order_by(TagName.tag_name_id) .limit(1) .as_scalar(), deferred=True) |