Skip to content

Commit

Permalink
added vikunja api token/url to config
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Aug 7, 2024
1 parent bf95e94 commit c458c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memberportal/api_member_tools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def post(self, request):

task_response = requests.request(
"PUT",
f"{config.VIKUNJA_URL}/api/v1/projects/{vikunja_project_id}/tasks",
f"{config.VIKUNJA_API_URL}/api/v1/projects/{vikunja_project_id}/tasks",
json=task_body,
headers={"Authorization": "Bearer " + config.VIKUNJA_API_TOKEN},
)
Expand All @@ -210,7 +210,7 @@ def post(self, request):

label_response = requests.request(
"PUT",
f"{config.VIKUNJA_URL}/api/v1/tasks/{task_id}/labels",
f"{config.VIKUNJA_API_URL}/api/v1/tasks/{task_id}/labels",
json=label_body,
headers={
"Authorization": "Bearer " + config.VIKUNJA_API_TOKEN
Expand Down
4 changes: 4 additions & 0 deletions memberportal/membermatters/constance_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
False,
"Enable the submit issue to Vikunja integration.",
),
"VIKUNJA_API_URL": ("", "Set this to your Vikunja instance public URL."),
"VIKUNJA_API_TOKEN": ("", "Set this to your Vikunja API token."),
"VIKUNJA_DEFAULT_PROJECT_ID": (
"",
"Set this to the ID of your default project to create issues in.",
Expand Down Expand Up @@ -462,6 +464,8 @@
"Vikunja Integration",
(
"VIKUNJA_TEAMS",
"VIKUNJA_URL",
"VIKUNJA_API_TOKEN",
"VIKUNJA_DEFAULT_PROJECT_ID",
"VIKUNJA_DEFAULT_LABEL_ID",
),
Expand Down

0 comments on commit c458c09

Please sign in to comment.