From 3d0cc72f81e54b0573bb11bf28fe883a8fb950fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 19 May 2024 20:30:51 +0300 Subject: [PATCH] fixup! Use @decorator in @time_limit decorator to remove function nesting --- plextraktsync/decorators/time_limit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plextraktsync/decorators/time_limit.py b/plextraktsync/decorators/time_limit.py index 80d9a03510..d138255628 100644 --- a/plextraktsync/decorators/time_limit.py +++ b/plextraktsync/decorators/time_limit.py @@ -11,6 +11,7 @@ def time_limit(fn, *args, **kwargs): """ Throttles calls not to be called more often than TRAKT_POST_DELAY """ + timer.wait_if_needed() return fn(*args, **kwargs)