Commit 16c5bdfb authored by ViolanteCodes's avatar ViolanteCodes
Browse files

added calls to settings.GITLAB_TIMEOUT to views.py

parent 0f9e9a08
......@@ -223,8 +223,12 @@ from anonticket.gitlabdown import (
)
# Make gitlab objects
gl = gitlab.Gitlab(settings.GITLAB_URL, private_token=settings.GITLAB_SECRET_TOKEN, timeout=1)
gl_public = gitlab.Gitlab(settings.GITLAB_URL, timeout=1)
gl = gitlab.Gitlab(
settings.GITLAB_URL,
private_token=settings.GITLAB_SECRET_TOKEN,
timeout=settings.GITLAB_TIMEOUT)
gl_public = gitlab.Gitlab(
settings.GITLAB_URL, timeout=settings.GITLAB_TIMEOUT)
gl_gitlab_down = GitlabDownObject()
def gitlab_get_project(project, public=False):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment