Add version extraction to parser
This commit is contained in:
parent
bb4b85851e
commit
7134dc65d8
2 changed files with 15 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue