Commit 5a4d29e8 authored by hardy's avatar hardy

adding check if milestone is empty

parent 3fee93c7
...@@ -92,6 +92,7 @@ class gDashboard: ...@@ -92,6 +92,7 @@ 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']!=None:
if self.d[x]['milestone']['title']=="REVIEW_CAN_START": if self.d[x]['milestone']['title']=="REVIEW_CAN_START":
milestone1="X" milestone1="X"
elif self.d[x]['milestone']['title']=="REVIEW_IN_PROGRESS": elif self.d[x]['milestone']['title']=="REVIEW_IN_PROGRESS":
...@@ -102,6 +103,8 @@ class gDashboard: ...@@ -102,6 +103,8 @@ class gDashboard:
milestone4="X" milestone4="X"
else: else:
pass pass
else:
pass
#check if empty or not #check if empty or not
if self.d[x]['assignee']!=None: if self.d[x]['assignee']!=None:
......
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