fix: get_single_value doesn't support multiple fields
diff --git a/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.py b/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.py
index 909aa36..f34ac5d 100644
--- a/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.py
+++ b/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.py
@@ -140,9 +140,7 @@
return query[0][0] if query else None
def validate_accounts_freeze(self):
- acc_settings = frappe.db.get_single_value(
- "Accounts Settings", ["acc_frozen_upto", "frozen_accounts_modifier"], as_dict=1
- )
+ acc_settings = frappe.get_cached_doc("Account Settings")
if not acc_settings.acc_frozen_upto:
return
if getdate(self.posting_date) <= getdate(acc_settings.acc_frozen_upto):
diff --git a/erpnext/utilities/doctype/video/video.py b/erpnext/utilities/doctype/video/video.py
index 7a04329..c3a653a 100644
--- a/erpnext/utilities/doctype/video/video.py
+++ b/erpnext/utilities/doctype/video/video.py
@@ -78,9 +78,8 @@
def update_youtube_data():
# Called every 30 minutes via hooks
- enable_youtube_tracking, frequency = frappe.db.get_single_value(
- "Video Settings", ["enable_youtube_tracking", "frequency"]
- )
+ enable_youtube_tracking = frappe.db.get_single_value("Video Settings", "enable_youtube_tracking")
+ frequency = frappe.db.get_single_value("Video Settings", "frequency")
if not cint(enable_youtube_tracking):
return