Skip to content

Commit 1c5e271

Browse files
fix(core): force convert QuerySpecification.args to GarfQueryParameters
1 parent 6ba3145 commit 1c5e271

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libs/core/garf/core/query_editor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,12 @@ def __init__(
212212
args: Optional parameters to be dynamically injected into query text.
213213
api_version: Version of Google Ads API.
214214
"""
215-
self.args = args or GarfQueryParameters()
215+
if not args:
216+
self.args = GarfQueryParameters()
217+
elif isinstance(args, GarfQueryParameters):
218+
self.args = args
219+
else:
220+
self.args = GarfQueryParameters(**args)
216221
self.query = BaseQueryElements(title=title, text=text)
217222

218223
@property

0 commit comments

Comments
 (0)