mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
Update powerdnsadmin/routes/admin.py
Looks good to me Co-authored-by: Corubba <97832352+corubba@users.noreply.github.com>
This commit is contained in:
parent
cfab13824d
commit
3c68b611c6
@ -613,12 +613,9 @@ def edit_account(account_name=None):
|
|||||||
account = Account.query.filter(
|
account = Account.query.filter(
|
||||||
Account.name == account_name).first()
|
Account.name == account_name).first()
|
||||||
all_accounts = Account.query.all()
|
all_accounts = Account.query.all()
|
||||||
accounts = {}
|
accounts = {acc.id: acc for acc in all_accounts}
|
||||||
domains = Domain.query.all()
|
domains = Domain.query.all()
|
||||||
|
|
||||||
for acc in all_accounts:
|
|
||||||
accounts[acc.id] = acc
|
|
||||||
|
|
||||||
if request.method == 'GET':
|
if request.method == 'GET':
|
||||||
if account_name is None or not account:
|
if account_name is None or not account:
|
||||||
return render_template('admin_edit_account.html',
|
return render_template('admin_edit_account.html',
|
||||||
|
Loading…
Reference in New Issue
Block a user