We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74b573 commit a87da40Copy full SHA for a87da40
1 file changed
navigator/background/wrappers/__init__.py
@@ -76,11 +76,11 @@ def __init__(
76
self.jitter: float = jitter
77
# Create the Job Record at status "pending"
78
# generate a list of arguments accepted by JobRecord:
79
- job_args = {}
+ job_args = {
80
+ k: v for k, v in kwargs.items()
81
+ if not k.startswith('_') and k in JobRecord.__fields__
82
+ }
83
content = kwargs.pop('content', None)
- for k, v in kwargs.items():
- if not k.startswith('_') and k in JobRecord.__fields__:
- job_args[k] = v
84
self.job_record: JobRecord = JobRecord(
85
name=self._name,
86
content=content,
0 commit comments