Commit 5a4d29e8 authored by hardy's avatar hardy

adding check if milestone is empty

parent 3fee93c7
...@@ -92,14 +92,17 @@ class gDashboard: ...@@ -92,14 +92,17 @@ class gDashboard:
date_time_obj = datetime.strptime(date_time_str, '%Y-%m-%dT%H:%M:%S.%fZ') date_time_obj = datetime.strptime(date_time_str, '%Y-%m-%dT%H:%M:%S.%fZ')
milestone1=milestone2=milestone3=milestone4="" milestone1=milestone2=milestone3=milestone4=""
if self.d[x]['milestone']['title']=="REVIEW_CAN_START": if self.d[x]['milestone']!=None:
milestone1="X" if self.d[x]['milestone']['title']=="REVIEW_CAN_START":
elif self.d[x]['milestone']['title']=="REVIEW_IN_PROGRESS": milestone1="X"
milestone2="X" elif self.d[x]['milestone']['title']=="REVIEW_IN_PROGRESS":
elif self.d[x]['milestone']['title']=="REVIEW_COMPLETED_AND_APPROVED": milestone2="X"
milestone3="X" elif self.d[x]['milestone']['title']=="REVIEW_COMPLETED_AND_APPROVED":
elif self.d[x]['milestone']['title']=="OK_TO_BE_MERGED": milestone3="X"
milestone4="X" elif self.d[x]['milestone']['title']=="OK_TO_BE_MERGED":
milestone4="X"
else:
pass
else: else:
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment