From 065e5f803d8b4d1f4a1a2030b8c88c1d1e2a9ba8 Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 25 Mar 2024 13:03:22 +0200 Subject: [PATCH] sss --- .../edit/__pycache__/urls.cpython-310.pyc | Bin 1759 -> 1764 bytes .../edit/__pycache__/views.cpython-310.pyc | Bin 9900 -> 10557 bytes osinaweb/osinacore/edit/urls.py | 2 +- osinaweb/osinacore/edit/views.py | 5 ++++- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/osinaweb/osinacore/edit/__pycache__/urls.cpython-310.pyc b/osinaweb/osinacore/edit/__pycache__/urls.cpython-310.pyc index 3d5378ad91ed6404bf051f5da2a62ae50e14b16b..7e2a80c83c59041eb933eca2085b938387652146 100644 GIT binary patch delta 86 zcmcc5`-GP_pO=@50SNX-GNxH>@aVe4g17m5FD#BOny7UdKqmXxFxXrZBrJ< diff --git a/osinaweb/osinacore/edit/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/edit/__pycache__/views.cpython-310.pyc index c6dce4e3046a1aeda5c1388ca390cdb76770d4c8..d470493b479c8a0ef36be1a8fb254f16ace91a84 100644 GIT binary patch delta 395 zcmW;Iy-or_5C?E~50R*QXN1T{1Qs}yOEj9Zu`(vKYJruF7H}#?KyPU@5KU~vNHv`= zV50>BexpL?8<=|n6I&}Pcid!t$z~=y|Lo0bC&NmN4G+lkvq84o4fYw+G|13k*LU%Jkpt&GY6PK{I2qfL`)m&~Br!C&jzq!Kmxu$0dI&~h zLAcU`RG84#=R9tzQV+4a@U2fO!u*ff^v5a58oo8#i_bKW8ghpa^oUsofBxPrMk*wPZcYHD897(qTIw1pvL%;%-qz;h3Zn1x2s4pexAHu-I#Iz zWKLBX!J>^IBQ}AEogiZO//', views.mark_point_completed, name='mark_point_completed'), path('mark_point_completed_task_page///', views.mark_point_completed_task_page, name='mark_point_completed_task_page'), path('mark_point_paused///', views.mark_point_paused, name='mark_point_paused'), - path('mark_point_paused_task_page///', views.mark_point_paused, name='mark_point_paused_task_page'), + path('mark_point_paused_task_page///', views.mark_point_paused_task_page, name='mark_point_paused_task_page'), ] \ No newline at end of file diff --git a/osinaweb/osinacore/edit/views.py b/osinaweb/osinacore/edit/views.py index c50bf020..41f02212 100644 --- a/osinaweb/osinacore/edit/views.py +++ b/osinaweb/osinacore/edit/views.py @@ -516,8 +516,11 @@ def mark_point_completed(request, point_id, task_id): status = Status(text=status_text, date=current_datetime.date(), time=current_datetime.strftime("%I:%M %p"), staff=request.user.staffprofile) status.save() + + task_id_str = task.task_id - return redirect('detailed-task', task_id=task.task_id) + showpoints_url = reverse('showpoints', args=[task_id_str]) + return HttpResponseRedirect(showpoints_url)