1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

removing irrelevant project_id

This commit is contained in:
OniriCorpe 2024-02-14 04:08:31 +01:00
parent a213afcb8c
commit be03798ede

View file

@ -118,7 +118,6 @@ class GiteaForgejoAPI:
split = re.search("(?P<host>https?://.+)/(?P<group>[^/]+)/(?P<project>[^/]+)/?$", upstream)
self.upstream = split.group("host")
self.upstream_repo = f"{split.group('group')}/{split.group('project')}"
self.project_id = self.find_project_id(self.upstream_repo)
def internal_api(self, uri: str):
url = f"{self.upstream}/api/v1/{uri}"