lint(onion): remove dunder calls
This commit is contained in:
parent
70bdebd155
commit
bdee43b78c
1 changed files with 3 additions and 2 deletions
|
@ -100,8 +100,9 @@ def onion_edit(onion_id: int) -> ResponseReturnValue:
|
|||
"tls_private_key",
|
||||
"tls_public_key"
|
||||
]:
|
||||
if form.__getattribute__(at).data is not None:
|
||||
onion.__setattr__(at, form.__getattribute__(at).data.read())
|
||||
if getattr(form, at).data is not None:
|
||||
# Don't clear the key if no key is uploaded
|
||||
setattr(onion, at, getattr(form, at).data.read())
|
||||
onion.updated = datetime.utcnow()
|
||||
try:
|
||||
db.session.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue