aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--printer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/printer.py b/printer.py
index 6e13f2c..eeba276 100644
--- a/printer.py
+++ b/printer.py
@@ -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", "")