diff options
| author | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-04 13:52:40 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-04 13:52:40 +0000 |
| commit | 1b1148cacc4bc90cc4cefb9f543f87c94d19c7df (patch) | |
| tree | df7b5262cef96c7c78401daf36ad6e607e8df612 /decky_plugin_installer.py | |
| parent | 6f40607b692ee4be76b954ec647fc0d8617c86bb (diff) | |
| download | decky-installer-1b1148cacc4bc90cc4cefb9f543f87c94d19c7df.tar.gz decky-installer-1b1148cacc4bc90cc4cefb9f543f87c94d19c7df.zip | |
Address code review feedback: extract constants and fix parameter passing
Co-authored-by: tranch <5999732+tranch@users.noreply.github.com>
Diffstat (limited to 'decky_plugin_installer.py')
| -rw-r--r-- | decky_plugin_installer.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/decky_plugin_installer.py b/decky_plugin_installer.py index 5814427..8d61f49 100644 --- a/decky_plugin_installer.py +++ b/decky_plugin_installer.py @@ -14,6 +14,9 @@ REPLY = 1 ERROR = -1 EVENT = 3 +# Default store URL +DEFAULT_STORE_URL = "https://plugins.deckbrew.xyz/plugins" + def log(*args: Any) -> None: """Print formatted logs to stderr.""" @@ -269,7 +272,7 @@ async def get_store_url() -> str: await client.connect(token) log("Getting configured store URL...") - await client.send(CALL, "utilities/settings/get", ["store_url", "https://plugins.deckbrew.xyz/plugins"]) + await client.send(CALL, "utilities/settings/get", ["store_url", DEFAULT_STORE_URL]) # Wait for reply msg = await client.recv() @@ -314,6 +317,8 @@ if __name__ == "__main__": # Get configured store URL asyncio.run(get_store_url()) else: - # Run installer - asyncio.run(run_installer(**{k: v for k, v in vars(args).items() - if k in ['target_id', 'store_url']})) + # Run installer - only pass expected parameters + asyncio.run(run_installer( + target_id=args.target_id, + store_url=args.store_url + )) |
