Skip to content

Commit

Permalink
Merge pull request #2012 from fishtown-analytics/fix/pedantic-pluralize
Browse files Browse the repository at this point in the history
Fix: pedantic pluralization
  • Loading branch information
drewbanin authored Jan 6, 2020
2 parents 22ceeca + d98613d commit 7d3591f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def print_compile_stats(stats):
NodeType.Model: 'model',
NodeType.Test: 'test',
NodeType.Snapshot: 'snapshot',
NodeType.Analysis: 'analyse',
NodeType.Analysis: 'analysis',
NodeType.Macro: 'macro',
NodeType.Operation: 'operation',
NodeType.Seed: 'seed file',
Expand Down
2 changes: 2 additions & 0 deletions core/dbt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ def translate_aliases(kwargs, aliases):
def pluralize(count, string):
if count == 1:
return "{} {}".format(count, string)
elif string == 'analysis':
return "{} {}".format(count, 'analyses')
else:
return "{} {}s".format(count, string)

Expand Down

0 comments on commit 7d3591f

Please sign in to comment.