1
Fork 0
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:
VarMonke 2022-04-17 11:26:55 +05:30
parent f75886bc92
commit cc44cb67e5
3 changed files with 22 additions and 8 deletions

View file

@ -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)