[REF-3220] Fix rx.cancel_upload EventSpec (#3608)

The formatting of the upload ID had extra single quotes that were not needed.
Now that `_var_name_unwrapped` is used, any `str`-like Vars will automatically
be formatted with backticks
This commit is contained in:
Masen Furer 2024-07-03 06:55:41 -07:00
parent d067fe9bb9
commit 270efb9f1b
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -107,7 +107,7 @@ def cancel_upload(upload_id: str) -> EventSpec:
An event spec that cancels the upload when triggered.
"""
return call_script(
f"upload_controllers[{Var.create_safe(upload_id, _var_is_string=True)._var_name_unwrapped!r}]?.abort()"
f"upload_controllers[{Var.create_safe(upload_id, _var_is_string=True)._var_name_unwrapped}]?.abort()"
)