kopia lustrzana https://github.com/Langenfeld/py-gitea
fixed #16
rodzic
4c545a6315
commit
b4004508df
|
@ -438,7 +438,7 @@ class Issue:
|
|||
|
||||
def get_estimate_sum(self):
|
||||
"""Returns the summed estimate-labeled values"""
|
||||
return sum(map(lambda l: float(l["name"][10:]), self.labels))
|
||||
return sum(map(lambda l: float(l["name"][10:]), filter(lambda l: l["name"][:10] == 'estimate: ' , self.labels)))
|
||||
|
||||
|
||||
class Branch:
|
||||
|
|
Ładowanie…
Reference in New Issue