Skip to content

Commit d0bf41e

Browse files
Fixed pep8 issue
1 parent a0bbc73 commit d0bf41e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

web/pgadmin/tools/sqleditor/utils/get_column_types.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,21 @@ def get_columns_types(is_query_tool, columns_info, table_oid, conn, has_oids,
6767
else:
6868
for row in rset['rows']:
6969
if row['oid'] == col['table_column']:
70-
col_type['not_null'] = col['not_null'] = row['not_null']
70+
col_type['not_null'] = col['not_null'] = \
71+
row['not_null']
7172

7273
col_type['has_default_val'] = \
73-
col['has_default_val'] = row['has_default_val']
74+
col['has_default_val'] = \
75+
row['has_default_val']
7476

75-
col_type['seqtypid'] = col['seqtypid'] = row['seqtypid']
77+
col_type['seqtypid'] = col['seqtypid'] = \
78+
row['seqtypid']
7679
break
7780

7881
else:
7982
col_type['not_null'] = col['not_null'] = None
80-
col_type['has_default_val'] = col['has_default_val'] = None
83+
col_type['has_default_val'] = \
84+
col['has_default_val'] = None
8185
col_type['seqtypid'] = col['seqtypid'] = None
8286

8387
return column_types

0 commit comments

Comments
 (0)