# HG changeset patch # User Goffi # Date 1551447950 -3600 # Node ID 0ae25883e223b8662d9c1a462cb8488493195c7c # Parent 11afbbce40d1f8434a7b3b3b264883b6690c16e1 jp (message/mam): --start doesn't defaut anymore to "1 day ago", it is now unset by default diff -r 11afbbce40d1 -r 0ae25883e223 sat_frontends/jp/cmd_message.py --- 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: