From b01c7965519dadb5e0c566db3da340648276744b Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Wed, 21 Aug 2019 03:06:41 +0530 Subject: Corrected indentation and coding style. --- poezio/mam.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'poezio/mam.py') diff --git a/poezio/mam.py b/poezio/mam.py index 4c8f3309..d928a735 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -153,14 +153,13 @@ def mam_scroll(tab): end = end.replace(tzinfo=tzone).astimezone(tz=timezone.utc) end = end.replace(tzinfo=None) end = datetime.strftime(end, '%Y-%m-%dT%H:%M:%SZ') - top = True pos = tab.text_win.pos tab.text_win.pos += tab.text_win.height - 1 if tab.text_win.pos + tab.text_win.height > len(tab.text_win.built_lines): if before is None: - asyncio.ensure_future(query(tab, remote_jid, top, end=end)) + asyncio.ensure_future(query(tab, remote_jid, top=True, end=end)) else: - asyncio.ensure_future(query(tab, remote_jid, top, before=before)) + asyncio.ensure_future(query(tab, remote_jid, top=True, before=before)) tab.query_id = 1 tab.text_win.pos = len(tab.text_win.built_lines) - tab.text_win.height if tab.text_win.pos < 0: -- cgit v1.2.3