Skip to content
Snippets Groups Projects
Commit 7a7b732a authored by Martin Mareš's avatar Martin Mareš
Browse files

mo.db: User má klíč, který třídí jen podle jména bez zjednoznačňování

parent 9767bbea
No related branches found
No related tags found
1 merge request!36Vylepšení výsledkové listiny
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
......@@ -291,6 +291,9 @@ class User(Base):
def sort_key(self) -> Tuple[str, str, int]:
return (locale.strxfrm(self.last_name), locale.strxfrm(self.first_name), self.user_id)
def name_sort_key(self) -> Tuple[str, str]:
return (locale.strxfrm(self.last_name), locale.strxfrm(self.first_name))
class Contest(Base):
__tablename__ = 'contests'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment