Skip to content

Commit

Permalink
fix: update sql in query
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Jul 29, 2023
1 parent 11a7304 commit 8d459a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion insights/insights/doctype/insights_query/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Status(Enum):


def update_sql(query):
sql = InsightsDataSource.get_doc(query.data_source)
data_source = InsightsDataSource.get_doc(query.data_source)
sql = data_source.build_query(query)
sql = format_query(sql)
if query.sql == sql:
return
Expand Down

0 comments on commit 8d459a4

Please sign in to comment.