Skip to content

Commit 90f619d

Browse files
committed
Fix #1290
Fix document application updates on TM1 v12
1 parent 34b4e2e commit 90f619d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TM1py/Services/ApplicationService.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,9 @@ def update(self, application: Union[Application, DocumentApplication], private:
288288

289289
if application.application_type == ApplicationTypes.DOCUMENT:
290290
url = format_url(
291-
"/Contents('Applications')" + mid + "/" + contents + "('{name}.blob')/Document/Content",
291+
"/Contents('Applications')" + mid + "/" + contents + "('{name}{extension}')/Document/Content",
292292
name=application.name,
293+
extension="" if verify_version("12", self.version) else ".blob"
293294
)
294295
response = self._rest.PATCH(url=url, data=application.content, headers=self.binary_http_header, **kwargs)
295296
else:

0 commit comments

Comments
 (0)