1
0
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:
Athanasius 2021-08-28 14:35:22 +01:00
parent e3cd1d6429
commit 67220fc96a
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

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