Skip to content

Commit

Permalink
Merge pull request #185 from nonsleepr/master
Browse files Browse the repository at this point in the history
Typo fix in statutils
  • Loading branch information
Stiivi committed Apr 15, 2014
2 parents f1d9fb0 + bcdb595 commit cbdbef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cubes/statutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _window_function_factory(aggregate, source, drilldown_paths, split_cell, win
drilldown_paths = drilldown_paths or []

if aggregate.window_size:
window_size = aggregate.window.size
window_size = aggregate.window_size
else:
# TODO: this is the old depreciated way, remove when not needed
for path in drilldown_paths:
Expand All @@ -125,7 +125,7 @@ def _window_function_factory(aggregate, source, drilldown_paths, split_cell, win

elif not isinstance(window_size, int) or window_size < 1:
raise ModelError("window size for aggregate '%s' sohuld be an integer "
"greater than 1" % aggregate.name)
"greater than or equeal 1" % aggregate.name)

# Create a composite key for grouping:
# * split dimension, if used
Expand Down

0 comments on commit cbdbef3

Please sign in to comment.