Skip to content
Snippets Groups Projects
Commit 7dd20e30 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Db: User: Funkce na zjištění doposud nepřihlášení

parent ff66d732
Branches
No related tags found
1 merge request!82Označení neaktivovaných účtů -- vytvoření user_html_flags
......@@ -303,6 +303,9 @@ class User(Base):
def name_sort_key(self) -> Tuple[str, str]:
return (locale.strxfrm(self.last_name), locale.strxfrm(self.first_name))
def is_inactive(self) -> bool:
return self.password_hash is None
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