fix: fix subdirectory issue

This commit is contained in:
vrenaville committed 2022-03-03 12:32:02 +01:00
1 parent ef68b6b5ca
commit 9b33e332ec
1 file changed
+2 -2
+2 -2
View File
@@ -153,7 +153,7 @@ class IrAttachment(models.Model):
if fname.startswith("azure://"):
key = fname.replace("azure://", "", 1).lower()
if '/' in key:
container_name, key = key.split('/')
container_name, key = key.split('/', 1)
else:
container_name = None
container_client = self._get_azure_container(container_name)
@@ -200,7 +200,7 @@ class IrAttachment(models.Model):
if fname.startswith("azure://"):
key = fname.replace("azure://", "", 1).lower()
if '/' in key:
container_name, key = key.split('/')
container_name, key = key.split('/', 1)
else:
container_name = None
container_client = self._get_azure_container(container_name)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.