Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 10, 2023
1 parent 6be6eb3 commit 80b3a17
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions uniticket/uni_ticket/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def visible_tickets_to_user(user,
office_employee,
closed=None,
taken=None,
taken_by=None):
taken_by=None,
priority_first=True):
"""
Returns a list of tickets that are visible to user
"""
Expand All @@ -275,7 +276,8 @@ def visible_tickets_to_user(user,
tickets = model.get_ticket_per_structure(structure=structure,
closed=closed,
taken=taken,
taken_by=taken_by)
taken_by=taken_by,
priority_first=priority_first)
return tickets
offices = []
for oe in office_employee:
Expand All @@ -284,7 +286,8 @@ def visible_tickets_to_user(user,
tickets = model.get_ticket_in_office_list(offices_list=offices,
closed=closed,
taken=taken,
taken_by=taken_by)
taken_by=taken_by,
priority_first=priority_first)
return tickets


Expand Down

0 comments on commit 80b3a17

Please sign in to comment.