Skip to content

Commit

Permalink
Correct part_fields variable name (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
geraneum authored and mistercrunch committed Nov 12, 2016
1 parent d33874b commit c064d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/jinja_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def latest_sub_partition(self, table_name, **kwargs):
indexes = self.database.get_indexes(table_name, schema)
part_fields = indexes[0]['column_names']
for k in kwargs.keys():
if k not in k in part_field:
if k not in k in part_fields:
msg = "Field [{k}] is not part of the partionning key"
raise SupersetTemplateException(msg)
if len(kwargs.keys()) != len(part_fields) - 1:
Expand Down

0 comments on commit c064d6d

Please sign in to comment.