Skip to content

Commit

Permalink
Merge pull request #470 from Molrn/fix-required-fig
Browse files Browse the repository at this point in the history
fix(flask): missing fig_json error
  • Loading branch information
zainhoda authored Jun 7, 2024
2 parents ee9727f + eaf6b46 commit fdcb93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanna/flask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ def generate_summary(user: any, id: str, df, question):
@self.flask_app.route("/api/v0/load_question", methods=["GET"])
@self.requires_auth
@self.requires_cache(
["question", "sql", "df", "fig_json"],
optional_fields=["summary"]
["question", "sql", "df"],
optional_fields=["summary", "fig_json"]
)
def load_question(user: any, id: str, question, sql, df, fig_json, summary):
try:
Expand Down

0 comments on commit fdcb93d

Please sign in to comment.