Revert "perf: cache fieldname extraction"
This reverts commit c591fcc5c1.
This commit is contained in:
parent
cf2be9d64e
commit
ffe84c9f9d
1 changed files with 0 additions and 2 deletions
|
|
@ -4,7 +4,6 @@
|
|||
"""build query for doclistview and return results"""
|
||||
|
||||
import json
|
||||
from functools import lru_cache
|
||||
|
||||
from sql_metadata import Parser
|
||||
|
||||
|
|
@ -179,7 +178,6 @@ def is_standard(fieldname):
|
|||
)
|
||||
|
||||
|
||||
@lru_cache
|
||||
def extract_fieldnames(field):
|
||||
parser = Parser(f"select {field}, _frappe_dummy from _dummy")
|
||||
columns = [col for col in parser.columns if col != "_frappe_dummy"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue