mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-18 23:15:09 +00:00
add properties
This commit is contained in:
parent
cc44cb67e5
commit
a3aa1a51a8
2 changed files with 50 additions and 7 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue