Skip to content

Commit

Permalink
fix(saved_queries): wrong enum for object_type of saved_query (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
akzarma authored and sebastianliebscher committed Apr 28, 2023
1 parent dc18ffa commit 6c0671e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class SavedQuery(Model, AuditMixinNullable, ExtraJSONMixin, ImportExportMixin):
secondary="tagged_object",
primaryjoin="and_(SavedQuery.id == TaggedObject.object_id)",
secondaryjoin="and_(TaggedObject.tag_id == Tag.id, "
"TaggedObject.object_type == 'saved_query')",
"TaggedObject.object_type == 'query')",
)

export_parent = "database"
Expand Down

0 comments on commit 6c0671e

Please sign in to comment.