Kaynağa Gözat

Implement new "failed" case status.

pull/8/merge
Ben Kurtovic 12 yıl önce
ebeveyn
işleme
be32c586cf
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. +4
    -1
      tasks/drn_clerkbot.py

+ 4
- 1
tasks/drn_clerkbot.py Dosyayı Görüntüle

@@ -46,6 +46,7 @@ class DRNClerkBot(Task):
STATUS_REVIEW = 5
STATUS_RESOLVED = 6
STATUS_CLOSED = 7
STATUS_FAILED = 8

ALIASES = {
STATUS_NEW: ("",),
@@ -55,6 +56,7 @@ class DRNClerkBot(Task):
STATUS_REVIEW: ("review",),
STATUS_RESOLVED: ("resolved", "resolve"),
STATUS_CLOSED: ("closed", "close"),
STATUS_FAILED: ("failed", "fail"),
}

def setup(self):
@@ -312,7 +314,8 @@ class DRNClerkBot(Task):
notices = self.clerk_stale_case(case, newsigs)
elif case.status == self.STATUS_REVIEW:
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.save_case_updates(conn, case, volunteers, signatures, storedsigs)
return notices


Yükleniyor…
İptal
Kaydet