1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-14 02:34:22 +02:00

prefer non-wildcard aliases over wildcard aliases

This commit is contained in:
hoellen 2018-12-10 08:40:10 +01:00
parent 79768c09f6
commit 8fe9e695f3

View File

@ -426,7 +426,7 @@ class Alias(Base, Email):
)
)
)
).order_by(sqlalchemy.func.char_length(cls.localpart).desc()).first()
).order_by(cls.wildcard, sqlalchemy.func.char_length(cls.localpart).desc()).first()
class Token(Base):