def getVotingByvID(vid): """ :param vid: voting id :return: Search voting by vID """ return VotingQuestionHandler().getVotingQuestionByID(vid)
def closeVoting(): """ :return: Update voting status to Inactive """ print("REQUEST", request.json) return VotingQuestionHandler().updateVotingStatus(request.json)
def getInactiveVotingBymID(mID): """ :param mID: meeting id :return: Get inactive or closed voting question by mID """ return VotingQuestionHandler().getInactiveVotingQuestionBymID(mID)
def getActiveVotingBymID(mID): """ :param mID: meeting id :return: Get active or open voting question by mID """ return VotingQuestionHandler().getActiveVotingQuestionBymID(mID)
def postVotingBymID(): """ :return: Post voting question by mID """ print("REQUEST", request.json) return VotingQuestionHandler().insertVotingJSON(request.json)
def getLastInactiveVotingBymID(mID): return VotingQuestionHandler().getLastInactiveVotingQuestionBymID(mID)
def closeVoting(): print("REQUEST", request.json) return VotingQuestionHandler().updateVotingStatus(request.json)
def getVotingByvID(vid): return VotingQuestionHandler().getVotingQuestionByID(vid)
def postVotingBymID(): print("REQUEST", request.json) return VotingQuestionHandler().insertVotingJSON(request.json)