diff --git a/royalpack/halloween2020/trionfilist.py b/royalpack/halloween2020/trionfilist.py index 98ad56b6..01591daf 100644 --- a/royalpack/halloween2020/trionfilist.py +++ b/royalpack/halloween2020/trionfilist.py @@ -36,7 +36,7 @@ trionfilist: List[TrionfoInfo] = [ roman="III", name="L'Imperatrice", puzzle="RIMANI LIBERO", - objective="Gioca almeno mezz'ora [url=https://store.steampowered.com/app/245170]Skullgirls[/url].", + objective="Gioca almeno mezz'ora a [url=https://store.steampowered.com/app/245170]Skullgirls[/url].", check=CheckPlayedSteamGame(245170), ), TrionfoInfo( @@ -206,10 +206,10 @@ trionfilist: List[TrionfoInfo] = [ TrionfoInfo( variable="xxi", title="xxi", - roman="XII", + roman="XXI", name="Il Mondo", puzzle="""44°35'45.0"N 11°02'58.9"E""", - objective="Vinci la partita a Trionfi Reali.", + objective="???", check=NullCheck(), ), ] \ No newline at end of file diff --git a/royalpack/halloween2020/trionfistatus.py b/royalpack/halloween2020/trionfistatus.py index 1c0e998f..8b72cceb 100644 --- a/royalpack/halloween2020/trionfistatus.py +++ b/royalpack/halloween2020/trionfistatus.py @@ -1,6 +1,7 @@ from sqlalchemy import * from sqlalchemy.orm import relationship, backref from sqlalchemy.ext.declarative import declared_attr +from .trionfilist import trionfilist class TrionfiStatus: @@ -130,29 +131,6 @@ class TrionfiStatus: def json(self): return { - "total": self.total(), - "tarots": { - "zero": self.zero.timestamp() if self.zero else None, - "i": self.i.timestamp() if self.i else None, - "ii": self.ii.timestamp() if self.ii else None, - "iii": self.iii.timestamp() if self.iii else None, - "iv": self.iv.timestamp() if self.iv else None, - "v": self.v.timestamp() if self.v else None, - "vi": self.vi.timestamp() if self.vi else None, - "vii": self.vii.timestamp() if self.vii else None, - "viii": self.viii.timestamp() if self.viii else None, - "ix": self.ix.timestamp() if self.ix else None, - "x": self.x.timestamp() if self.x else None, - "xi": self.xi.timestamp() if self.xi else None, - "xii": self.xii.timestamp() if self.xii else None, - "xiii": self.xiii.timestamp() if self.xiii else None, - "xiv": self.xiv.timestamp() if self.xiv else None, - "xv": self.xv.timestamp() if self.xv else None, - "xvi": self.xvi.timestamp() if self.xvi else None, - "xvii": self.xvii.timestamp() if self.xvii else None, - "xviii": self.xviii.timestamp() if self.xviii else None, - "xix": self.xix.timestamp() if self.xix else None, - "xx": self.xx.timestamp() if self.xx else None, - "xxi": self.xxi.timestamp() if self.xxi else None, - } + "completed": self.total(), + "trionfi": {trionfo.variable: trionfo.json_user(self) for trionfo in trionfilist} } diff --git a/royalpack/halloween2020/trionfoinfo.py b/royalpack/halloween2020/trionfoinfo.py index ea5d8ff5..e9014ed8 100644 --- a/royalpack/halloween2020/trionfoinfo.py +++ b/royalpack/halloween2020/trionfoinfo.py @@ -40,5 +40,5 @@ class TrionfoInfo: "name": self.name, "objective": self.objective, "puzzle": self.puzzle if status is not None else None, - "completed_on": status + "completed_on": status.timestamp() if status is not None else None }