Skip to content

Commit e1870f3

Browse files
committed
add wrapper
1 parent 11ee766 commit e1870f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import numpy as np
1111
import random
1212
import traceback
13+
import functools
1314
import time
1415

1516
LOGS_DIR = 'logs'
@@ -129,6 +130,7 @@ def change_runtime_template(self, runtime_template):
129130

130131
def check_and_reload_data():
131132
def decorator(func):
133+
@functools.wraps(func)
132134
def wrapper(*args, **kwargs):
133135
if template_manager.check_pkl_files_changed():
134136
template_manager.reload_data()

0 commit comments

Comments
 (0)