Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Remove unused extension variable.

Niloth P3d178b0cd0f2
diff --git a/zerver/lib/integrations.py b/zerver/lib/integrations.py
index 3045765244b..14a8a36b722 100644
--- a/zerver/lib/integrations.py
+++ b/zerver/lib/integrations.py
@@ -188,7 +188,7 @@ class WebhookIntegration(Integration):
DEFAULT_FUNCTION_PATH = "zerver.webhooks.{name}.view.api_{name}_webhook"
DEFAULT_URL = "api/v1/external/{name}"
DEFAULT_CLIENT_NAME = "Zulip{name}Webhook"
- DEFAULT_DOC_PATH = "{name}/doc.{ext}"
+ DEFAULT_DOC_PATH = "{name}/doc.md"
def __init__(
self,
@@ -229,7 +229,7 @@ class WebhookIntegration(Integration):
self.url = url
if doc is None:
- doc = self.DEFAULT_DOC_PATH.format(name=name, ext="md")
+ doc = self.DEFAULT_DOC_PATH.format(name=name)
self.doc = doc
if dir_name is None: