Fix creating wrong zip archive
This commit is contained in:
		@@ -68,7 +68,7 @@ async def appliance_data(
 | 
				
			|||||||
async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
 | 
					async def zip_archive(appliance: "HonAppliance", path: Path, anonymous: bool = False):
 | 
				
			||||||
    data = await appliance_data(appliance, path, anonymous)
 | 
					    data = await appliance_data(appliance, path, anonymous)
 | 
				
			||||||
    archive = data[0].parent
 | 
					    archive = data[0].parent
 | 
				
			||||||
    shutil.make_archive(str(archive), "zip", path)
 | 
					    shutil.make_archive(str(archive.parent), "zip", archive)
 | 
				
			||||||
    shutil.rmtree(archive)
 | 
					    shutil.rmtree(archive)
 | 
				
			||||||
    return f"{archive.stem}.zip"
 | 
					    return f"{archive.stem}.zip"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							@@ -7,7 +7,7 @@ with open("README.md", "r") as f:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
setup(
 | 
					setup(
 | 
				
			||||||
    name="pyhOn",
 | 
					    name="pyhOn",
 | 
				
			||||||
    version="0.14.1",
 | 
					    version="0.14.2",
 | 
				
			||||||
    author="Andre Basche",
 | 
					    author="Andre Basche",
 | 
				
			||||||
    description="Control hOn devices with python",
 | 
					    description="Control hOn devices with python",
 | 
				
			||||||
    long_description=long_description,
 | 
					    long_description=long_description,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user