From c6e8c1812891bc2102d9b6d022223bbe3fbe8c35 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Oct 2019 20:37:34 +0800 Subject: [PATCH] cards: forgot to call save --- cards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cards.py b/cards.py index 282ae2d..a9004bb 100644 --- a/cards.py +++ b/cards.py @@ -222,6 +222,7 @@ def cards_lottery(update, context): cards = int(cards) if cards > 1 else 1 cards *= randrange(-1, 2, 2) fplayer.immunity_cards += cards + fplayer.save() update.message.reply_text(f'您{"获得" if cards >= 0 else "血亏"}了{abs(cards)}张卡') @run_async