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)
def export_tail(): if config.export_url != '': return '\n* 资源导出 %s' % short_url.get(config.export_url) return ''
def donate_tail(): if config.donate_url != '': return '\n* 黄鸭捐助 %s' % short_url.get(config.donate_url) return ''
def source_code_tail(): if config.source_code_url != '': return '\n* 工具源码 %s' % short_url.get(config.source_code_url) return ''
def build_url(_id): url = '{}{}.zip'.format(config.download_server_url, _id) return short_url.get(url)
def search_tail(): if config.search_url != '': return '\n* 资源搜索 %s' % short_url.get(config.search_url) return ''