0.1.49 修复装饰器Bug

This commit is contained in:
2023-11-27 16:51:44 +08:00
parent 7a9b86f791
commit bd8930d03e
3 changed files with 4 additions and 4 deletions

View File

@@ -2,8 +2,8 @@
# 函数的装饰器,用于软件包的统计
def function_decorator(func):
def wrapper():
func()
def wrapper(*args, **kwargs):
func(*args, **kwargs)
import guan
guan.statistics_of_guan_package(func.__name__)
return wrapper