Browse Source

Merge branch 'master' of blezz-tech/sharix-open-tickets into master

1 changed files with 10 additions and 6 deletions
  1. 10 6
      lib/tickets.py

+ 10 - 6
lib/tickets.py

@@ -31,13 +31,15 @@ class Ticket:
         ]),
         (3, "ACCESS_REQUEST", [
             [320, 321, 359],
-            [321, 359],
-            [359]
+            [321, 359, 451],
+            [359, 351]
+            [351]
         ]),
         (4, "NEG_REQUEST", [
             [420, 421, 459],
-            [421, 459],
-            [459]
+            [421, 459, 451],
+            [459, 451]
+            [451]
         ])
     )
 
@@ -71,13 +73,15 @@ class Ticket:
     access_request_type = {
         "PENDING": 320,
         "ACCEPTED": 321,
-        "DECLINED": 359
+        "DECLINED": 359,
+        "CLOSED": 351
     }
 
     neg_request_type = {
         "PENDING": 420,
         "ACCEPTED": 421,
-        "DECLINED": 459
+        "DECLINED": 459,
+        "CLOSED": 451
     }
 
     TICKET_STATUSES_NAMES = reverse_obj(request_type) | \