mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
CAPI: Change CAPIDataRaw.__getitem__ to using __getitem__ itself
The only use of this is stats.py, and it explicitly checks for the key's existence first.
This commit is contained in:
parent
e3cd1d6429
commit
67220fc96a
@ -173,7 +173,7 @@ class CAPIDataRaw:
|
||||
|
||||
def __getitem__(self, item):
|
||||
"""Make the raw_data dict's items get'able."""
|
||||
return self.raw_data.get(item)
|
||||
return self.raw_data.__getitem__(item)
|
||||
|
||||
|
||||
def listify(thing: Union[List, Dict]) -> List:
|
||||
|
Loading…
x
Reference in New Issue
Block a user