diff options
| author | 2020-07-07 01:26:34 +0200 | |
|---|---|---|
| committer | 2020-07-07 01:26:34 +0200 | |
| commit | 8462abaa15e0f9eb7b4f861d0485686ec7470ed0 (patch) | |
| tree | 2070254ec805f6abb4f5557ad481eb6627b4323e | |
| parent | Create 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.py | 2 |
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 [], "" |