Esempio n. 1
0
def build_url(_id):
    if db_helper.exist_download(_id):
        dl = db_helper.get_download(_id)
        if dl.download_url is not None and dl.download_url != '':
            return dl.download_url

    url = '{}{}.zip'.format(config.download_server_url, _id)
    return short_url.get(url)
Esempio n. 2
0
def export_tail():
    if config.export_url != '':
        return '\n* 资源导出 %s' % short_url.get(config.export_url)
    return ''
Esempio n. 3
0
def donate_tail():
    if config.donate_url != '':
        return '\n* 黄鸭捐助 %s' % short_url.get(config.donate_url)
    return ''
Esempio n. 4
0
def source_code_tail():
    if config.source_code_url != '':
        return '\n* 工具源码 %s' % short_url.get(config.source_code_url)
    return ''
Esempio n. 5
0
def build_url(_id):
    url = '{}{}.zip'.format(config.download_server_url, _id)
    return short_url.get(url)
Esempio n. 6
0
def search_tail():
    if config.search_url != '':
        return '\n* 资源搜索 %s' % short_url.get(config.search_url)
    return ''