fixing how covid henadles no argument
This commit is contained in:
parent
065547f1bc
commit
2503d5885c
@ -137,11 +137,11 @@ def sum_numbers(location):
|
|||||||
# return percent_vaccinated
|
# return percent_vaccinated
|
||||||
|
|
||||||
|
|
||||||
def parse_message(message):
|
def parse_message(location=None):
|
||||||
try:
|
try:
|
||||||
location = string.capwords(" ".join(message.split()))
|
location = string.capwords(" ".join(location.split()))
|
||||||
if not location:
|
if not location:
|
||||||
location = "California"
|
location = "California"
|
||||||
except IndexError:
|
except (IndexError, AttributeError):
|
||||||
location = "California"
|
location = "California"
|
||||||
return sum_numbers(location)
|
return sum_numbers(location)
|
||||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "174"
|
tag: "176"
|
||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user