Add version extraction to parser

This commit is contained in:
Marty Oehme 2021-12-25 10:27:38 +01:00
parent bb4b85851e
commit 7134dc65d8
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 15 additions and 2 deletions

View file

@ -8,3 +8,6 @@ class NomieParser(Parser):
def __init__(self, data="{}") -> None:
"""Load a data set and prepare parser data"""
self.data = jsonloads(data)
def extract_version(self) -> str:
return self.data["nomie"]["number"]