def applyextractFollowup():
    try:
        extractFollowup(user_batches=True)
        return redirect(url_for('comm.showSuccessPage'))
    except:
        errormessage = "Something went wrong when extracting the excel from database"
        return redirect(
            url_for('comm.showFailedPage', errormessage=errormessage))
def applyextractFollowup():
    try:
        extractFollowup()
        return redirect(url_for('comm.showSuccessPage'))
    except Exception as e:
        errormessage = str(
            "Something went wrong when extracting the excel from database. Got: {}"
            .format(e))
        return redirect(
            url_for('comm.showFailedPage', errormessage=errormessage))