mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: blanking out particular fields when editing accounts
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
c83c5cdc42
commit
4a4fd01563
1 changed files with 5 additions and 5 deletions
|
@ -19,11 +19,11 @@ def simple(U: str = str(), E: str = str(), H: bool = False,
|
||||||
user.Username = U or user.Username
|
user.Username = U or user.Username
|
||||||
user.Email = E or user.Email
|
user.Email = E or user.Email
|
||||||
user.HideEmail = strtobool(H)
|
user.HideEmail = strtobool(H)
|
||||||
user.BackupEmail = BE or user.BackupEmail
|
user.BackupEmail = user.BackupEmail if BE is None else BE
|
||||||
user.RealName = R or user.RealName
|
user.RealName = user.RealName if R is None else R
|
||||||
user.Homepage = HP or user.Homepage
|
user.Homepage = user.Homepage if HP is None else HP
|
||||||
user.IRCNick = I or user.IRCNick
|
user.IRCNick = user.IRCNick if I is None else I
|
||||||
user.PGPKey = K or user.PGPKey
|
user.PGPKey = user.PGPKey if K is None else K
|
||||||
user.Suspended = strtobool(S)
|
user.Suspended = strtobool(S)
|
||||||
user.InactivityTS = now * int(strtobool(J))
|
user.InactivityTS = now * int(strtobool(J))
|
||||||
user.CommentNotify = strtobool(CN)
|
user.CommentNotify = strtobool(CN)
|
||||||
|
|
Loading…
Add table
Reference in a new issue