示例#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
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()}