コード例 #1
0
ファイル: main.py プロジェクト: Y-E-R-A/Whitestone
def getVotingByvID(vid):
    """
    :param vid: voting id
    :return: Search voting by vID
    """
    return VotingQuestionHandler().getVotingQuestionByID(vid)
コード例 #2
0
ファイル: main.py プロジェクト: Y-E-R-A/Whitestone
def closeVoting():
    """
    :return: Update voting status to Inactive
    """
    print("REQUEST", request.json)
    return VotingQuestionHandler().updateVotingStatus(request.json)
コード例 #3
0
ファイル: main.py プロジェクト: Y-E-R-A/Whitestone
def getInactiveVotingBymID(mID):
    """
    :param mID: meeting id
    :return: Get inactive or closed voting question by mID
    """
    return VotingQuestionHandler().getInactiveVotingQuestionBymID(mID)
コード例 #4
0
ファイル: main.py プロジェクト: Y-E-R-A/Whitestone
def getActiveVotingBymID(mID):
    """
    :param mID: meeting id
    :return: Get active or open voting question by mID
    """
    return VotingQuestionHandler().getActiveVotingQuestionBymID(mID)
コード例 #5
0
ファイル: main.py プロジェクト: Y-E-R-A/Whitestone
def postVotingBymID():
    """
    :return: Post voting question by mID
    """
    print("REQUEST", request.json)
    return VotingQuestionHandler().insertVotingJSON(request.json)
コード例 #6
0
def getLastInactiveVotingBymID(mID):
    return VotingQuestionHandler().getLastInactiveVotingQuestionBymID(mID)
コード例 #7
0
def closeVoting():
    print("REQUEST", request.json)
    return VotingQuestionHandler().updateVotingStatus(request.json)
コード例 #8
0
def getVotingByvID(vid):
    return VotingQuestionHandler().getVotingQuestionByID(vid)
コード例 #9
0
def postVotingBymID():
    print("REQUEST", request.json)
    return VotingQuestionHandler().insertVotingJSON(request.json)