server/db: poor fix for tag aliases' order

It's a hack, but it seems to work okay.
This commit is contained in:
rr- 2016-08-15 18:08:19 +02:00
parent 48af5160df
commit a224297c4f

View file

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