Skip to content

Commit 5c2a862

Browse files
author
Jongmin Kim
authored
Merge pull request #81 from whdalsrnt/master
feat: add YEARLY option to analyze query
2 parents 26f2d27 + a2cd26d commit 5c2a862

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spaceone/core/model/mongo_model/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def _make_group_keys(cls, group_by, date_field, granularity=None):
10321032
'name': name
10331033
})
10341034

1035-
if granularity and granularity in ['DAILY', 'MONTHLY']:
1035+
if granularity and granularity in ['DAILY', 'MONTHLY', 'YEARLY']:
10361036
group_keys.append({
10371037
'key': date_field,
10381038
'name': 'date'

0 commit comments

Comments
 (0)