fixes render_in_frontend function

This commit is contained in:
Mose Müller
2024-02-27 12:58:43 +01:00
parent acd0c80316
commit a01cf273fe

View File

@@ -60,7 +60,7 @@ def render_in_frontend(func: Callable[..., Any]) -> bool:
It checks if the "@frontend" decorator was used or the method is a coroutine."""
if inspect.iscoroutine(func):
if inspect.iscoroutinefunction(func):
return True
try: