1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

gr8 progress m8

This commit is contained in:
Steffo 2020-09-25 03:55:19 +02:00
parent 1cdfaf0cc1
commit 1e41892f1d
3 changed files with 7 additions and 29 deletions

View file

@ -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(),
),
]

View file

@ -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}
}

View file

@ -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
}