We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG描述 使用config装饰器装饰的应用函数丢失了原本的__name__ 这会导致当在一个app函数上套了多个装饰器再搭配使用start_server()部署多个应用时,引发ValueError: Duplicated application name报错
环境信息
最小可复现示例
from pywebio import output from pywebio.platform import start_server, config from pywebio.session import run_js from functools import wraps def remove_footer(webio_app): @wraps(webio_app) def remove_footer_wrapper(): jscode = """$(".footer").remove();""" run_js(jscode) webio_app() return remove_footer_wrapper @remove_footer @config(title='show text') def show_text(): output.put_text('abc') @remove_footer @config(title='show markdown') def show_markdown(): output.put_markdown('# abc') if __name__ == '__main__': start_server([show_text, show_markdown])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
BUG描述
使用config装饰器装饰的应用函数丢失了原本的__name__
这会导致当在一个app函数上套了多个装饰器再搭配使用start_server()部署多个应用时,引发ValueError: Duplicated application name报错
环境信息
最小可复现示例
The text was updated successfully, but these errors were encountered: