Bugfix: Delete 'web-*' on cancellation.
authorBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 4 Aug 2021 10:30:31 +0000 (12:30 +0200)
committerBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 4 Aug 2021 10:30:31 +0000 (12:30 +0200)
controlpi_plugins/camera.py

index 34476a45f2501c05690bde498bdef832db183f76..98b14b881852e827a0b6a8bf57ba30c39418def0 100644 (file)
@@ -144,7 +144,7 @@ class Camera(BasePlugin):
                 full_path = os.path.join(self.conf['path'], full_name)
                 if os.path.isfile(full_path):
                     os.remove(full_path)
-                web_name = 'web_'+full_name
+                web_name = 'web-'+full_name
                 web_path = os.path.join(self.conf['path'], web_name)
                 if os.path.isfile(web_path):
                     os.remove(web_path)