Skip to content

Commit

Permalink
Correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Dec 6, 2010
1 parent 0f5f975 commit eb340a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quest/query/rollup_drilldown.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def drilldown(query, parent_attribute):
Takes a query and parent attribute to drilldown on -- i.e. return
a query with the parent attribute's child instead of the parent attribute.
"""
if parent not in drilldown_parent2child:
if parent_attribute not in drilldown_parent2child:
error_message = "Cannot DRILLDOWN on %s. Can DRILLDOWN on any of these: %s" % (parent_attribute, ", ".join(drilldown_parent2child.keys()))
raise QuestOperationNotAllowedException(error_message)

Expand Down

0 comments on commit eb340a9

Please sign in to comment.