from templates.text import TextTemplate
from pogoiv.iv_calculator import IvCalculator

def process(input, data ,sender):
    calc = IvCalculator()
    if pogodata is None:
        pogodata = data.split(' ')
        res = calc.get_ivs(pogodata[1], pogodata[2], pogodata[3], pogodata[4], pogodata[5])
    else:
        res = "Invalid data input!"
    output = {
        'input': input,
        'output': TextTemplate(str(res)).get_message(),
        'success': True
    }
    return output

@@ -147,20 +147,16 @@
 %0A    if 
-pogo
 data is 

data not pogodata