diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-04-08 18:24:21 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-04-08 18:24:21 -0300 |
commit | 497488499fcf870df762919e42862ca6b52a0028 (patch) | |
tree | d76c154940678e30372853c13bd275ebf67708f8 /service/pixelated/adapter | |
parent | 58e22319f1926d5441cb7b69451bfa91d30fa03a (diff) | |
parent | 5634839779d5ba751742b3b99d1bb867efe98fe9 (diff) |
Merge pull request #358 from pixelated-project/shybamaster
Welcome email
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/soledad/soledad_facade_mixin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/adapter/soledad/soledad_facade_mixin.py b/service/pixelated/adapter/soledad/soledad_facade_mixin.py index 280fc81e..761ef1e2 100644 --- a/service/pixelated/adapter/soledad/soledad_facade_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_facade_mixin.py @@ -59,8 +59,10 @@ class SoledadDbFacadeMixin(object): def get_mbox(self, mbox): return self.soledad.get_from_index('by-type-and-mbox', 'mbox', mbox) if mbox else [] - def get_lastuid(self, mbox_doc): - return mbox_doc.content['lastuid'] + def get_lastuid(self, mbox): + if isinstance(mbox, str): + mbox = self.get_mbox(mbox)[0] + return mbox.content['lastuid'] def get_search_index_masterkey(self): return self.soledad.get_from_index('by-type', 'index_key') |