Skip to content

Commit

Permalink
fix: don't try to update youtube data if disabled in settings (backport
Browse files Browse the repository at this point in the history
frappe#32588) (frappe#32590)

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

fix: cast value from db

[skip ci]

(cherry picked from commit e543dca)

* 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>
  • Loading branch information
3 people authored Oct 13, 2022
1 parent ff3bfb0 commit 7e7122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/utilities/doctype/video/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e7122b

Please sign in to comment.