kopia lustrzana https://github.com/Langenfeld/py-gitea
bugfix of User Time in Repo
rodzic
7d4254d691
commit
b6edba05dc
|
@ -361,7 +361,8 @@ class Repository:
|
|||
results = self.gitea.requests_get(
|
||||
Repository.REPO_USER_TIME % (self.owner.username, self.name, username)
|
||||
)
|
||||
return results["time"] if results else "0"
|
||||
time = (sum(map(lambda d: d["time"], results)) // 60) / 60
|
||||
return time
|
||||
|
||||
def delete(self):
|
||||
""" Deletes this Repository.
|
||||
|
|
Ładowanie…
Reference in New Issue