refactor: Fix redundant cache value set

This commit is contained in:
Suraj Shetty 2020-04-29 16:43:01 +05:30 committed by GitHub
parent bf3a80f05d
commit a73be732fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -777,7 +777,7 @@ class Database(object):
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')
""")
tables = set(d[0] for d in table_rows)
frappe.cache().set_value('db_tables', tables)
frappe.cache().set_value('db_tables', tables)
return tables
def a_row_exists(self, doctype):