mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[models] deepcopy EGLManifest input data
This commit is contained in:
parent
4ace27bbcc
commit
e8a2df75fd
|
@ -1,3 +1,4 @@
|
|||
from copy import deepcopy
|
||||
from distutils.util import strtobool
|
||||
|
||||
from legendary.models.game import InstalledGame, Game
|
||||
|
@ -73,6 +74,7 @@ class EGLManifest:
|
|||
|
||||
@classmethod
|
||||
def from_json(cls, json: dict):
|
||||
json = deepcopy(json)
|
||||
tmp = cls()
|
||||
tmp.app_name = json.pop('AppName')
|
||||
tmp.app_version_string = json.pop('AppVersionString', None)
|
||||
|
|
Loading…
Reference in a new issue