mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
Fix how i added the argument to runhook and _runhook
This commit is contained in:
parent
3a69062a82
commit
fd4fdd82c4
|
|
@ -3886,7 +3886,7 @@ def _runhook(
|
|||
ip: str,
|
||||
at: float,
|
||||
txt: str,
|
||||
other: dict
|
||||
other: dict = {},
|
||||
) -> dict[str, Any]:
|
||||
ret = {"rc": 0}
|
||||
areq, chk, imp, fork, sin, jtxt, wait, sp_ka, acmd = _parsehook(log, cmd)
|
||||
|
|
@ -3982,7 +3982,7 @@ def runhook(
|
|||
ip: str,
|
||||
at: float,
|
||||
txt: str,
|
||||
other: dict,
|
||||
other: dict = {},
|
||||
) -> dict[str, Any]:
|
||||
assert broker or up2k # !rm
|
||||
args = (broker or up2k).args # type: ignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue