fix: Directly used set comprehension
As indicated by deepsource
This commit is contained in:
parent
651109bb00
commit
bf3a80f05d
1 changed files with 1 additions and 1 deletions
|
|
@ -776,7 +776,7 @@ class Database(object):
|
|||
FROM information_schema.tables
|
||||
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')
|
||||
""")
|
||||
tables = set([d[0] for d in table_rows])
|
||||
tables = set(d[0] for d in table_rows)
|
||||
frappe.cache().set_value('db_tables', tables)
|
||||
return tables
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue