kopia lustrzana https://github.com/Langenfeld/py-gitea
exposed Issue type; removed project speciffic parsing of labels
rodzic
d919747d29
commit
e4dfc6a4b9
|
@ -8,4 +8,5 @@ from .gitea import (
|
||||||
version,
|
version,
|
||||||
NotFoundException,
|
NotFoundException,
|
||||||
AlreadyExistsException,
|
AlreadyExistsException,
|
||||||
|
Issue,
|
||||||
)
|
)
|
||||||
|
|
|
@ -437,11 +437,6 @@ class Issue:
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "#%i %s" % (self.id, self.title)
|
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:
|
class Branch:
|
||||||
""" Represents a Branch in the Gitea-instance.
|
""" Represents a Branch in the Gitea-instance.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue