Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
YurySuslovScalyr committed Mar 26, 2024
1 parent 4373089 commit 737ab03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def update_datasource(datasource: typing.Dict):
target.pop('copyText', None)
target.pop('dataLink', None)
filter = target.pop('filter')
function = target.pop('function', 'count')
function = target.pop('function', 'countPerSec')

target['queryType'] = 'Standard'
target['expression'] = f'{function}({filter})'
Expand Down

0 comments on commit 737ab03

Please sign in to comment.