* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user