Compare commits
2 Commits
9af77b99b6
...
ae045c6082
Author | SHA1 | Date | |
---|---|---|---|
ae045c6082 | |||
478a826390 |
|
@ -69,7 +69,7 @@ def pixels_to_chars(image, scale="ascii", color_code=None):
|
|||
L = R * 299/1000 + G * 587/1000 + B * 114/1000
|
||||
index = int(L/range_width)
|
||||
char = scales[scale][index]
|
||||
if color_code and char is not " ":
|
||||
if color_code and char != " ":
|
||||
prefix = color_prefix[color_code] + char_color(pixel,color_code)
|
||||
char = prefix + char
|
||||
new_row += char
|
||||
|
|
|
@ -48,7 +48,7 @@ def remind_recur(bot, trigger):
|
|||
parser = tools.FulviaArgparse()
|
||||
parser.add_argument('period')
|
||||
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('-r', '--recur', action='store_true')
|
||||
try:
|
||||
|
@ -58,7 +58,7 @@ def remind_recur(bot, trigger):
|
|||
|
||||
if args.start:
|
||||
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:
|
||||
return bot.msg("Datetime improperly formatted.")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user