|
@@ -46,6 +46,7 @@ class DRNClerkBot(Task): |
|
|
STATUS_REVIEW = 5 |
|
|
STATUS_REVIEW = 5 |
|
|
STATUS_RESOLVED = 6 |
|
|
STATUS_RESOLVED = 6 |
|
|
STATUS_CLOSED = 7 |
|
|
STATUS_CLOSED = 7 |
|
|
|
|
|
STATUS_FAILED = 8 |
|
|
|
|
|
|
|
|
ALIASES = { |
|
|
ALIASES = { |
|
|
STATUS_NEW: ("",), |
|
|
STATUS_NEW: ("",), |
|
@@ -55,6 +56,7 @@ class DRNClerkBot(Task): |
|
|
STATUS_REVIEW: ("review",), |
|
|
STATUS_REVIEW: ("review",), |
|
|
STATUS_RESOLVED: ("resolved", "resolve"), |
|
|
STATUS_RESOLVED: ("resolved", "resolve"), |
|
|
STATUS_CLOSED: ("closed", "close"), |
|
|
STATUS_CLOSED: ("closed", "close"), |
|
|
|
|
|
STATUS_FAILED: ("failed", "fail"), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
def setup(self): |
|
|
def setup(self): |
|
@@ -312,7 +314,8 @@ class DRNClerkBot(Task): |
|
|
notices = self.clerk_stale_case(case, newsigs) |
|
|
notices = self.clerk_stale_case(case, newsigs) |
|
|
elif case.status == self.STATUS_REVIEW: |
|
|
elif case.status == self.STATUS_REVIEW: |
|
|
notices = self.clerk_review_case(case) |
|
|
notices = self.clerk_review_case(case) |
|
|
elif case.status in [self.STATUS_RESOLVED, self.STATUS_CLOSED]: |
|
|
|
|
|
|
|
|
elif case.status in [self.STATUS_RESOLVED, self.STATUS_CLOSED, |
|
|
|
|
|
self.STATUS_FAILED]: |
|
|
self.clerk_closed_case(case, signatures) |
|
|
self.clerk_closed_case(case, signatures) |
|
|
self.save_case_updates(conn, case, volunteers, signatures, storedsigs) |
|
|
self.save_case_updates(conn, case, volunteers, signatures, storedsigs) |
|
|
return notices |
|
|
return notices |
|
|