コード例 #1
0
ファイル: studies.py プロジェクト: mestaki/qiita
def study_tags_request():
    """Retrieve available study tags

    Returns
    -------
    dict of {str, str}
        A dictionary with the following keys:
        - status: str, whether if the request is successful or not
        - message: str, if the request is unsuccessful, a human readable error
        - tags: {level: value, ..., ...}
    """
    return {'status': 'success', 'message': '', 'tags': Study.get_tags()}
コード例 #2
0
ファイル: studies.py プロジェクト: josenavas/QiiTa
def study_tags_request():
    """Retrieve available study tags

    Returns
    -------
    dict of {str, str}
        A dictionary with the following keys:
        - status: str, whether if the request is successful or not
        - message: str, if the request is unsuccessful, a human readable error
        - tags: {level: value, ..., ...}
    """
    return {'status': 'success',
            'message': '',
            'tags': Study.get_tags()}