diff options
-rw-r--r-- | printer.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ msgs = session.query(Message).order_by(Message.timestamp.desc()).all() my_timezone = timedelta(hours=7) -for msg in msgs: +for msg in msgs[:20]: sent_at = msg.timestamp - my_timezone sent_at_str = sent_at.strftime("[%m-%d %H:%M]") text = msg.text[:70].replace("\n", "") |