Skip to content

Commit

Permalink
quoting.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jul 11, 2024
1 parent 0bcb935 commit b54338a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gamutrfwaterfall/gamutrfwaterfall/flask_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,13 @@ def config_form(self):
write_scanner_args(self.config_vars_path, self.config_vars)
reset = request.form.get("reset", None)
if reset == "reset":
reconf_query_str = "&".join(
[f'{k}="{v}"' for k, v in self.config_vars.items()]
)
reconf_queries = []
for k, v in self.config_vars.items():
if k in ["description"]:
reconf_queries.append(f'{k}="{v}"')

Check warning on line 227 in gamutrfwaterfall/gamutrfwaterfall/flask_handler.py

View check run for this annotation

Codecov / codecov/patch

gamutrfwaterfall/gamutrfwaterfall/flask_handler.py#L224-L227

Added lines #L224 - L227 were not covered by tests
else:
reconf_queries.append(f"{k}={v}")
reconf_query_str = "&".join(reconf_queries)

Check warning on line 230 in gamutrfwaterfall/gamutrfwaterfall/flask_handler.py

View check run for this annotation

Codecov / codecov/patch

gamutrfwaterfall/gamutrfwaterfall/flask_handler.py#L229-L230

Added lines #L229 - L230 were not covered by tests
logging.info(f"\n\n{reconf_query_str=}\n\n")
try:
response = requests.get(
Expand Down

0 comments on commit b54338a

Please sign in to comment.