Mercurial > libervia-backend
changeset 2824:0ae25883e223
jp (message/mam): --start doesn't defaut anymore to "1 day ago", it is now unset by default
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Mar 2019 14:45:50 +0100 |
parents | 11afbbce40d1 |
children | 1b6547fb80da |
files | sat_frontends/jp/cmd_message.py |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_message.py Fri Mar 01 12:17:34 2019 +0100 +++ b/sat_frontends/jp/cmd_message.py Fri Mar 01 14:45:50 2019 +0100 @@ -214,7 +214,8 @@ help=_(u"jid of the service (default: profile's server")) self.parser.add_argument( "-S", "--start", dest="mam_start", type=base.date_decoder, - help=_(u"start fetching archive from this date (default: 1 day ago)")) + help=_( + u"start fetching archive from this date (default: from the beginning)")) self.parser.add_argument( "-E", "--end", dest="mam_end", type=base.date_decoder, help=_(u"end fetching archive after this date (default: no limit)")) @@ -257,11 +258,9 @@ errback=self.errback) def start(self): - if self.args.mam_start is None: - self.args.mam_start = base.date_decoder(u"-1 day") - extra = { - u"mam_start": float(self.args.mam_start), - } + extra = {} + if self.args.mam_start is not None: + extra[u"mam_start"] = float(self.args.mam_start) if self.args.mam_end is not None: extra[u"mam_end"] = float(self.args.mam_end) if self.args.mam_with is not None: