mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-16 06:05:00 +00:00
add http.data meth and make owner optional in delete_repo and fix repo licenses
This commit is contained in:
parent
f75886bc92
commit
cc44cb67e5
3 changed files with 22 additions and 8 deletions
|
@ -165,10 +165,10 @@ class Repository(APIObject):
|
|||
continue
|
||||
|
||||
if 'license' in key:
|
||||
if value is None:
|
||||
setattr(self, key,None)
|
||||
setattr(self, key, value['name'])
|
||||
continue
|
||||
if value is not None:
|
||||
setattr(self, key, value.get('name'))
|
||||
continue
|
||||
setattr(self, key, None)
|
||||
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue