1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-18 23:15:09 +00:00

add properties

This commit is contained in:
VarMonke 2022-04-19 21:15:57 +05:30
parent cc44cb67e5
commit a3aa1a51a8
2 changed files with 50 additions and 7 deletions

View file

@ -261,6 +261,7 @@ class http:
data['files'] = {}
for file in files:
data['files'][file.filename] = {
'filename' : file.filename, # helps editing the file
'content': file.read()
}
data = json.dumps(data)
@ -284,5 +285,4 @@ class http:
return await result.json()
if result.status == 401:
raise NoAuthProvided
raise RepositoryAlreadyExists
raise RepositoryAlreadyExists