From f94e7236509397cd31c25cebbb36d8b044516ad0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 14 Oct 2020 15:01:24 +0200 Subject: [PATCH] ups --- royalpack/commands/fortune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/royalpack/commands/fortune.py b/royalpack/commands/fortune.py index bafcdd98..347f595d 100644 --- a/royalpack/commands/fortune.py +++ b/royalpack/commands/fortune.py @@ -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()