mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
fixup: call function with instance
This commit is contained in:
parent
5f11779dc2
commit
d69866ded8
@ -196,7 +196,7 @@ def index_source_task(source_id):
|
||||
def time_model_function(instance, func):
|
||||
@time_func
|
||||
def f(o, c):
|
||||
return o.c()
|
||||
return c(o)
|
||||
rt = f(instance, func)
|
||||
elapsed = rt[1][0]
|
||||
log.debug(f'time_model_function: {instance}: {func}: took {elapsed:.6f} seconds')
|
||||
|
Loading…
Reference in New Issue
Block a user