From 662ae38fd95b30bb0d2e9dca69ea55e47aadb62e Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 12 Jun 2018 22:01:21 +0100 Subject: Update GitLab URL --- pysite/views/error_handlers/http_4xx.py | 2 +- pysite/views/error_handlers/http_5xx.py | 2 +- pysite/views/main/redirects/github.py | 2 +- pysite/views/main/redirects/gitlab.py | 2 +- pysite/views/wiki/edit.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pysite/views') diff --git a/pysite/views/error_handlers/http_4xx.py b/pysite/views/error_handlers/http_4xx.py index 1667adcf..731204f9 100644 --- a/pysite/views/error_handlers/http_4xx.py +++ b/pysite/views/error_handlers/http_4xx.py @@ -26,6 +26,6 @@ class Error400View(ErrorView): return self.render( "errors/error.html", code=error.code, req=request, error_title=error_desc, error_message=f"{error_desc} If you believe we have made a mistake, please " - "" + "" "open an issue on our GitLab." ), error.code diff --git a/pysite/views/error_handlers/http_5xx.py b/pysite/views/error_handlers/http_5xx.py index c9ffa007..489eb5e5 100644 --- a/pysite/views/error_handlers/http_5xx.py +++ b/pysite/views/error_handlers/http_5xx.py @@ -36,6 +36,6 @@ class Error500View(ErrorView): "errors/error.html", code=error.code, req=request, error_title=error_desc, error_message="An error occurred while processing this request, please try " "again later. If you believe we have made a mistake, please " - "file an issue on our" + "file an issue on our" " GitLab." ), error.code diff --git a/pysite/views/main/redirects/github.py b/pysite/views/main/redirects/github.py index 816d165f..9e9c0cb8 100644 --- a/pysite/views/main/redirects/github.py +++ b/pysite/views/main/redirects/github.py @@ -4,5 +4,5 @@ from pysite.base_route import RedirectView class GitHubView(RedirectView): path = "/github" name = "github" - page = "https://gitlab.com/discord-python/" + page = "https://gitlab.com/python-discord/" code = 302 diff --git a/pysite/views/main/redirects/gitlab.py b/pysite/views/main/redirects/gitlab.py index eda0e179..4b2b60b4 100644 --- a/pysite/views/main/redirects/gitlab.py +++ b/pysite/views/main/redirects/gitlab.py @@ -4,5 +4,5 @@ from pysite.base_route import RedirectView class GitLabView(RedirectView): path = "/gitlab" name = "gitlab" - page = "https://gitlab.com/discord-python/" + page = "https://gitlab.com/python-discord/" code = 302 diff --git a/pysite/views/wiki/edit.py b/pysite/views/wiki/edit.py index cc121cc6..5f0129c2 100644 --- a/pysite/views/wiki/edit.py +++ b/pysite/views/wiki/edit.py @@ -156,7 +156,7 @@ class EditView(RouteView, DBMixin): headers = { "Authorization": f"token {GITHUB_TOKEN}", - "User-Agent": "Discord Python Wiki (https://gitlab.com/discord-python)" + "User-Agent": "Discord Python Wiki (https://gitlab.com/python-discord)" } gist = requests.post("https://api.github.com/gists", -- cgit v1.2.3