exposed Issue type; removed project speciffic parsing of labels

pull/1/head
Langenfeld 2019-05-03 15:24:39 +02:00
rodzic d919747d29
commit e4dfc6a4b9
2 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -8,4 +8,5 @@ from .gitea import (
version,
NotFoundException,
AlreadyExistsException,
Issue,
)

Wyświetl plik

@ -437,11 +437,6 @@ class Issue:
def __repr__(self):
return "#%i %s" % (self.id, self.title)
def get_estimate_sum(self):
"""Returns the summed estimate-labeled values"""
return sum(map(lambda l: float(l["name"][10:]), filter(lambda l: l["name"][:10] == 'estimate: ' , self.labels)))
class Branch:
""" Represents a Branch in the Gitea-instance.