From d83552e7db3ce57e321faa9fc219edbe3608e7a8 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Sat, 13 Jul 2019 21:55:48 +0100 Subject: [PATCH] minor --- tweets/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tweets/__init__.py b/tweets/__init__.py index 4f36536..17dc56e 100755 --- a/tweets/__init__.py +++ b/tweets/__init__.py @@ -91,9 +91,10 @@ def tweets_all() -> List[Tweet]: res: List[Tweet] = [] for tid in keys: if tid in tjson: - res.append(tjson[tid]) + tw = tjson[tid] else: - res.append(tdump[tid]) + tw = tdump[tid] + res.append(tw) res.sort(key=lambda t: t.dt) return res