Skip to content

Commit

Permalink
Fix PEP8 issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi authored and akshay-joshi committed Dec 19, 2023
1 parent d93c6e2 commit d9de8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/pgadmin/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ def dump_database_servers(output_file, selected_servers,
servers = Server.query.filter_by(user_id=user_id).all()
server_dict = {}
for server in servers:
if selected_servers is None or (type(selected_servers) == list
and len(selected_servers) == 0
if selected_servers is None or (
isinstance(selected_servers, list) and len(selected_servers) == 0
) or str(server.id) in selected_servers:
# Get the group name
group_name = ServerGroup.query.filter_by(
Expand Down

0 comments on commit d9de8df

Please sign in to comment.