Explorar el Código

Sets explicitly PDF availability

Adrien Panay hace 7 años
padre
commit
515a086f8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tracim/tracim/controllers/content.py

+ 1 - 1
tracim/tracim/controllers/content.py Ver fichero

@@ -242,7 +242,7 @@ class UserWorkspaceFolderFileRestController(TIMWorkspaceContentRestController):
242 242
             # INFO - A.P - Silently intercepts preview exception
243 243
             # As preview generation isn't mandatory, just register it
244 244
             logger.debug(self, 'Exception: {}'.format(e.__str__))
245
-        pdf_available = str(enable_pdf_buttons).lower()  # type: str
245
+        pdf_available = 'true' if enable_pdf_buttons else 'false'  # type: str
246 246
 
247 247
         fake_api_breadcrumb = self.get_breadcrumb(file_id)
248 248
         fake_api_content = DictLikeClass(breadcrumb=fake_api_breadcrumb,