aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-07-07 01:26:34 +0200
committerGravatar Numerlor <[email protected]>2020-07-07 01:26:34 +0200
commit8462abaa15e0f9eb7b4f861d0485686ec7470ed0 (patch)
tree2070254ec805f6abb4f5557ad481eb6627b4323e
parentCreate method to fetch and create a BeautifulSoup object from an url. (diff)
Use the group attribute instead of checking the symbol name.
-rw-r--r--bot/cogs/doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py
index 71bfcfd4a..5ebfb6c25 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc.py
@@ -284,7 +284,7 @@ class Doc(commands.Cog):
if symbol_heading is None:
return None
- if symbol_id == f"module-{symbol}":
+ if symbol_info.group == "module":
parsed_module = self.parse_module_symbol(symbol_heading)
if parsed_module is None:
return [], ""