Skip to content

Commit a2cd26d

Browse files
author
Jongmin Kim
committed
feat: add YEARLY option to analyze query
1 parent 26f2d27 commit a2cd26d

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)