diff options
author | Lance Stout <lancestout@gmail.com> | 2013-09-24 16:07:50 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-09-24 16:07:50 -0700 |
commit | beae845281a703adb6f9db3894a40063259aebe3 (patch) | |
tree | 38f1c0652fac7626effa25015e17c7c241f0a522 /sleekxmpp | |
parent | 6f64dac262afd11d4a03158a7072478dfc5155fc (diff) | |
download | slixmpp-beae845281a703adb6f9db3894a40063259aebe3.tar.gz slixmpp-beae845281a703adb6f9db3894a40063259aebe3.tar.bz2 slixmpp-beae845281a703adb6f9db3894a40063259aebe3.tar.xz slixmpp-beae845281a703adb6f9db3894a40063259aebe3.zip |
Fix MAM start query
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/plugins/xep_0313/stanza.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0313/stanza.py b/sleekxmpp/plugins/xep_0313/stanza.py index b7def47b..81576cd4 100644 --- a/sleekxmpp/plugins/xep_0313/stanza.py +++ b/sleekxmpp/plugins/xep_0313/stanza.py @@ -25,13 +25,13 @@ class MAM(ElementBase): self._results = [] def get_start(self): - timestamp = self._get_attr('start') + timestamp = self._get_sub_text('start') return xep_0082.parse(timestamp) def set_start(self, value): if isinstance(value, dt.datetime): value = xep_0082.format_datetime(value) - self._set_attr('start', value) + self._set_sub_text('start', value) def get_end(self): timestamp = self._get_sub_text('end') |