mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-09 06:22:29 +08:00
fix api
This commit is contained in:
@@ -36,6 +36,9 @@ class AsObj:
|
||||
def _dict(self):
|
||||
return {k: v for k, v in self.__dict__.items() if not k.startswith("_")}
|
||||
|
||||
def to_dict(self):
|
||||
return self._dict()
|
||||
|
||||
def __delitem__(self, key):
|
||||
return delattr(self, key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user