bugfix --start
This commit is contained in:
parent
9af77b99b6
commit
478a826390
|
@ -48,7 +48,7 @@ def remind_recur(bot, trigger):
|
||||||
parser = tools.FulviaArgparse()
|
parser = tools.FulviaArgparse()
|
||||||
parser.add_argument('period')
|
parser.add_argument('period')
|
||||||
parser.add_argument('reminder', nargs='*')
|
parser.add_argument('reminder', nargs='*')
|
||||||
parser.add_argument('-s', '--start')
|
parser.add_argument('-s', '--start', nargs=2)
|
||||||
parser.add_argument('-l', '--lazy', action='store_true')
|
parser.add_argument('-l', '--lazy', action='store_true')
|
||||||
parser.add_argument('-r', '--recur', action='store_true')
|
parser.add_argument('-r', '--recur', action='store_true')
|
||||||
try:
|
try:
|
||||||
|
@ -58,7 +58,7 @@ def remind_recur(bot, trigger):
|
||||||
|
|
||||||
if args.start:
|
if args.start:
|
||||||
try:
|
try:
|
||||||
start = datetime.strptime(args.start, '%Y-%m-%d %H:%M:%S')
|
start = datetime.strptime(' '.join(args.start),'%Y-%m-%d %H:%M:%S')
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return bot.msg("Datetime improperly formatted.")
|
return bot.msg("Datetime improperly formatted.")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user