Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Dec 17, 2024
1 parent 30cda01 commit f3dd067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,10 +1123,10 @@ def manage_creds():
if request.args.get('json', 0):
json_creds = json.dumps(creds)
to_delete = ['password', 'token', 'proxy', 'private_key', 'client_id', 'secret']
for cred in json_creds:
for elem in json_creds:
for key in to_delete:
if key in cred:
del cred[key]
if key in elem:
del elem[key]
return json_creds
else:
return render_template('service_creds.html', creds=creds,
Expand Down

0 comments on commit f3dd067

Please sign in to comment.