prefer non-wildcard aliases over wildcard aliases

master
hoellen 6 years ago
parent 79768c09f6
commit 8fe9e695f3

@ -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): class Token(Base):

Loading…
Cancel
Save