fix: Directly used set comprehension

As indicated by deepsource
This commit is contained in:
Suraj Shetty 2020-04-29 14:39:14 +05:30
parent 651109bb00
commit bf3a80f05d

View file

@ -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