forked from p15670423/monkey
Fix bug where 'dead' property of monkey wasn't defined
This commit is contained in:
parent
05ddc592ec
commit
1ad37b1dad
|
@ -53,6 +53,7 @@ class Monkey(flask_restful.Resource):
|
||||||
|
|
||||||
def post(self, **kw):
|
def post(self, **kw):
|
||||||
monkey_json = json.loads(request.data)
|
monkey_json = json.loads(request.data)
|
||||||
|
monkey_json['dead'] = False
|
||||||
if 'keepalive' in monkey_json:
|
if 'keepalive' in monkey_json:
|
||||||
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue