fixup: call function with instance

This commit is contained in:
tcely 2025-03-11 05:45:00 -04:00 committed by GitHub
parent 5f11779dc2
commit d69866ded8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,7 +196,7 @@ def index_source_task(source_id):
def time_model_function(instance, func): def time_model_function(instance, func):
@time_func @time_func
def f(o, c): def f(o, c):
return o.c() return c(o)
rt = f(instance, func) rt = f(instance, func)
elapsed = rt[1][0] elapsed = rt[1][0]
log.debug(f'time_model_function: {instance}: {func}: took {elapsed:.6f} seconds') log.debug(f'time_model_function: {instance}: {func}: took {elapsed:.6f} seconds')