mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-18 17:14:35 -04:00
Fix wrong archive link
This commit is contained in:
parent
76bd189e7b
commit
924e2c240d
2 changed files with 5 additions and 4 deletions
|
@ -67,9 +67,10 @@ async def appliance_data(
|
|||
|
||||
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
|
||||
data = await appliance_data(appliance, path, anonymous)
|
||||
shutil.make_archive(str(path), "zip", path)
|
||||
shutil.rmtree(path)
|
||||
return f"{data[0].parent.stem}.zip"
|
||||
archive = data[0].parent
|
||||
shutil.make_archive(str(archive), "zip", path)
|
||||
shutil.rmtree(archive)
|
||||
return f"{archive.stem}.zip"
|
||||
|
||||
|
||||
def yaml_export(appliance: "HonAppliance", anonymous=False) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue