Skip to content

Commit

Permalink
Have values of type dict returned also be converted to type MicroDict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Thomas committed Jul 11, 2018
1 parent 9ef3698 commit ab49e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions O365/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def __getitem__(self, key):
result = super(MicroDict, self).get(key[:1].lower() + key[1:], None)
if result is None:
result = super(MicroDict, self).get(key[:1].upper() + key[1:])
if type(result) is dict:
result = MicroDict(result)
return result


Expand Down

0 comments on commit ab49e4a

Please sign in to comment.