mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(python): use S argument to decide Suspended
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0ed752277c
commit
cf978e23aa
2 changed files with 30 additions and 4 deletions
|
@ -12,7 +12,7 @@ def simple(U: str = str(), E: str = str(), H: bool = False,
|
|||
BE: str = str(), R: str = str(), HP: str = str(),
|
||||
I: str = str(), K: str = str(), J: bool = False,
|
||||
CN: bool = False, UN: bool = False, ON: bool = False,
|
||||
user: models.User = None,
|
||||
S: bool = False, user: models.User = None,
|
||||
**kwargs) -> None:
|
||||
now = int(datetime.utcnow().timestamp())
|
||||
with db.begin():
|
||||
|
@ -24,7 +24,7 @@ def simple(U: str = str(), E: str = str(), H: bool = False,
|
|||
user.Homepage = HP or user.Homepage
|
||||
user.IRCNick = I or user.IRCNick
|
||||
user.PGPKey = K or user.PGPKey
|
||||
user.Suspended = strtobool(J)
|
||||
user.Suspended = strtobool(S)
|
||||
user.InactivityTS = now * int(strtobool(J))
|
||||
user.CommentNotify = strtobool(CN)
|
||||
user.UpdateNotify = strtobool(UN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue