Use GH api URL

Update configuration.rst
This commit is contained in:
Michael Shamoon
2022-04-01 14:41:50 -07:00
parent 9485dfb8cc
commit 6677b39e9d
2 changed files with 4 additions and 4 deletions

View File

@@ -679,8 +679,8 @@ class RemoteVersionView(GenericAPIView):
if settings.ENABLE_UPDATE_CHECK:
try:
with urllib.request.urlopen(
"https://raw.githubusercontent.com/paperless-ngx"
+ "/paperless-ngx/main/src/paperless/version.py",
"https://api.github.com/repos/"
+ "paperless-ngx/paperless-ngx/releases/latest",
) as response:
remote = response.read().decode("utf-8")
try: