mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40: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.name == account_name).first()
|
||||
all_accounts = Account.query.all()
|
||||
accounts = {}
|
||||
accounts = {acc.id: acc for acc in all_accounts}
|
||||
domains = Domain.query.all()
|
||||
|
||||
for acc in all_accounts:
|
||||
accounts[acc.id] = acc
|
||||
|
||||
if request.method == 'GET':
|
||||
if account_name is None or not account:
|
||||
return render_template('admin_edit_account.html',
|
||||
|
Loading…
Reference in New Issue
Block a user