@@ -77,7 +77,8 @@ def change_value_by_rule(rule: str, param_key: str, value: any = None) -> any:
77
77
def wrapper (func : callable ) -> callable :
78
78
@functools .wraps (func )
79
79
def wrapped_func (cls , params : dict ) -> Union [dict , types .GeneratorType ]:
80
- if param_value := params .get (param_key ):
80
+ if param_key in params :
81
+ param_value = params [param_key ]
81
82
if rule == "APPEND" :
82
83
if isinstance (param_value , list ):
83
84
param_value .append (value )
@@ -287,7 +288,7 @@ def wrapped_func(cls, params):
287
288
288
289
289
290
def change_timestamp_value (
290
- timestamp_keys = None , timestamp_format = "google_timestamp"
291
+ timestamp_keys = None , timestamp_format = "google_timestamp"
291
292
) -> callable :
292
293
if timestamp_keys is None :
293
294
timestamp_keys = []
@@ -339,7 +340,7 @@ def wrapped_func(cls, params):
339
340
340
341
341
342
def change_timestamp_filter (
342
- filter_keys = None , timestamp_format = "google_timestamp"
343
+ filter_keys = None , timestamp_format = "google_timestamp"
343
344
) -> callable :
344
345
if filter_keys is None :
345
346
filter_keys = []
@@ -377,7 +378,7 @@ def _is_null(value) -> bool:
377
378
378
379
379
380
def _change_timestamp_condition (
380
- query_filter , filter_keys , filter_type , timestamp_format
381
+ query_filter , filter_keys , filter_type , timestamp_format
381
382
) -> list :
382
383
change_filter = []
383
384
0 commit comments