diff options
author | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 04:52:57 +0530 |
---|---|---|
committer | Madhur Garg <madhurgarg96@gmail.com> | 2019-08-22 04:53:59 +0530 |
commit | 9470f4943b61a78f24267147ede40e1d34e97420 (patch) | |
tree | 187eaf3a9ef2db4737953852ac0a1d12a7f8b1c2 | |
parent | 4d57a1faf967fa4b5a0dcdd9e19bc413545616d9 (diff) | |
download | poezio-9470f4943b61a78f24267147ede40e1d34e97420.tar.gz poezio-9470f4943b61a78f24267147ede40e1d34e97420.tar.bz2 poezio-9470f4943b61a78f24267147ede40e1d34e97420.tar.xz poezio-9470f4943b61a78f24267147ede40e1d34e97420.zip |
Missed name change of start_date to start.
-rw-r--r-- | poezio/mam.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/mam.py b/poezio/mam.py index 92899284..25f56678 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -95,13 +95,13 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None): if 'conference' in list(iq['disco_info']['identities'])[0]: try: results = tab.core.xmpp['xep_0313'].retrieve(jid=remote_jid, - iterator=True, reverse=top, start=start_date, end=end) + iterator=True, reverse=top, start=start, end=end) except (IqError, IqTimeout): return tab.core.information('Failed to retrieve messages', 'Error') else: try: results = tab.core.xmpp['xep_0313'].retrieve(with_jid=remote_jid, - iterator=True, reverse=top, start=start_date, end=end) + iterator=True, reverse=top, start=start, end=end) except (IqError, IqTimeout): return tab.core.information('Failed to retrieve messages', 'Error') msg_count = 0 |