fix: don't try to update youtube data if disabled in settings (backport #32588) (#32590)

* fix: don't try to update youtube data if disabled in settings (#32588)

fix: cast value from db

[skip ci]

(cherry picked from commit e543dca6a0)

* chore: qualified path

not imported 

[skip ci]

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-10-13 11:57:08 +05:30
committed by GitHub
parent ff3bfb060a
commit 7e7122b668

View File

@@ -60,7 +60,7 @@ def update_youtube_data():
"Video Settings", "Video Settings", ["enable_youtube_tracking", "frequency"]
)
if not enable_youtube_tracking:
if not frappe.utils.cint(enable_youtube_tracking):
return
frequency = get_frequency(frequency)