kopia lustrzana https://github.com/Langenfeld/py-gitea
(bugfix) changing file content uses correct dictionary key
rodzic
e321c0bddd
commit
b5f27f70bd
|
@ -548,7 +548,7 @@ class Repository(ApiObject):
|
||||||
if not data:
|
if not data:
|
||||||
data = {}
|
data = {}
|
||||||
url = f"/repos/{self.owner.username}/{self.name}/contents/{file_path}"
|
url = f"/repos/{self.owner.username}/{self.name}/contents/{file_path}"
|
||||||
data.update({"sha": file_sha, "data": content})
|
data.update({"sha": file_sha, "content": content})
|
||||||
return self.gitea.requests_put(url, data)
|
return self.gitea.requests_put(url, data)
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
|
|
Ładowanie…
Reference in New Issue