diff options
| author | 2020-10-04 12:35:37 +0530 | |
|---|---|---|
| committer | 2020-10-04 12:35:37 +0530 | |
| commit | 2a415d883fa79d9c421cec07becf7c1f846788da (patch) | |
| tree | 4a11f1902628a2004e3a56a73cef22144ed8c026 /bot | |
| parent | changed github_avatar_url (diff) | |
removed tag handling
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/exts/evergreen/source.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/exts/evergreen/source.py b/bot/exts/evergreen/source.py index 206cf258..0725714f 100644 --- a/bot/exts/evergreen/source.py +++ b/bot/exts/evergreen/source.py @@ -74,11 +74,7 @@ class BotSource(commands.Cog): first_line_no = None lines_extension = "" - # Handle tag file location differently than others to avoid errors in some cases - if not first_line_no: - file_location = Path(filename).relative_to("/bot/") - else: - file_location = Path(filename).relative_to(Path.cwd()).as_posix() + file_location = Path(filename).relative_to(Path.cwd()).as_posix() url = f"{Source.github}/blob/master/{file_location}{lines_extension}" |