# Path: worker/bases.py
# def get_config(section, key, const=0):
#     """
#     Get a configuration
#     :param section: string, the config insides which section
#     :param key: string
#     :param const: int, 0 means to look up user's conf, 1 means to look up bioqueue's conf
#     :return:
#     """
#     try:
#         config = config_init(const)
#         return config.get(section, key)
#     except:
#         return None
# 
# def get_bioqueue_version():
#     """
#     Get BioQueue Version
#     :return: string, version
#     """
#     import os
#     version = ''
#     version_file = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0] + '/version'
#     with open(version_file) as version_file_handle:
#         version = version_file_handle.read()
#     return version


import requests
import base64
    import json
from .bases import get_config, get_bioqueue_version
        from bases import get_job_log
    from ui.tools import os_to_int
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time: 2017/2/27 12:24
# @Author: Li Yao
# @File: feedback.py
# @License: Apache
# @Bitbutcket: https://bitbucket.org/li_yao/
# @Github: https://github.com/liyao001


def feedback(software, parameter, mail):
    """
    Usage feedback
    :param software:
    :param parameter:
    :param hash:
    :return:
    """

# Path: worker/bases.py
# def get_config(section, key, const=0):
#     """
#     Get a configuration
#     :param section: string, the config insides which section
#     :param key: string
#     :param const: int, 0 means to look up user's conf, 1 means to look up bioqueue's conf
#     :return:
#     """
#     try:
#         config = config_init(const)
#         return config.get(section, key)
#     except:
#         return None
# 
# def get_bioqueue_version():
#     """
#     Get BioQueue Version
#     :return: string, version
#     """
#     import os
#     version = ''
#     version_file = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0] + '/version'
#     with open(version_file) as version_file_handle:
#         version = version_file_handle.read()
#     return version


# Path: worker/feedback.py
import requests
import base64
    import json
from .bases import get_config, get_bioqueue_version
        from bases import get_job_log
    from ui.tools import os_to_int

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time: 2017/2/27 12:24
# @Author: Li Yao
# @File: feedback.py
# @License: Apache
# @Bitbutcket: https://bitbucket.org/li_yao/
# @Github: https://github.com/liyao001


def feedback(software, parameter, mail):
    """
    Usage feedback
    :param software:
    :param parameter:
    :param hash:
    :return:
    """

    ver = base64.b64encode(get_bioqueue_version())