1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2020-10-14 15:01:24 +02:00
parent 4a8f23b837
commit f94e723650

View file

@ -66,8 +66,8 @@ class FortuneCommand(rc.Command):
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
async with data.session_acm() as session:
author = await data.find_author(session=session, required=True)
if author.trionfistatus and author.trionfistatus.zero:
author.trionfistatus.x = datetime.datetime.now()
if len(author.steam) > 0 and author.steam[0].trionfistatus and author.steam[0].trionfistatus.zero:
author.steam[0].trionfistatus.x = datetime.datetime.now()
today = datetime.date.today()