Skip to content

Commit

Permalink
Merge branch 'dev' into notification_updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Dec 13, 2023
2 parents 2788dac + 59d94f0 commit 59524a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,12 @@ def delete_project_tasks(self, request, pk=None):
)
def get_users_recent_tasks(self, request):
try:
user = request.user
try:
user_id = request.query_params.get("user_id")
user = User.objects.filter(id=user_id)[0]
except Exception as e:
user = request.user

task_type = request.query_params.get("task_type", "annotation")
project_id = request.query_params.get("search_Project ID", "")
task_id = request.query_params.get("search_Task ID", "")
Expand Down

0 comments on commit 59524a2

Please sign in to comment.