mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
fix: add patch to set conferencing provider for existing Zoom records
Sets conferencing_provider to "Zoom" for all existing LMS Batch and LMS Live Class records that have a zoom_account linked.
This commit is contained in:
@@ -119,4 +119,5 @@ lms.patches.v2_0.open_to_work
|
||||
lms.patches.v2_0.share_enrollment
|
||||
lms.patches.v2_0.give_user_list_permission #11-02-2026
|
||||
lms.patches.v2_0.rename_badge_assignment_event
|
||||
lms.patches.v2_0.enable_allow_job_posting
|
||||
lms.patches.v2_0.enable_allow_job_posting
|
||||
lms.patches.v2_0.set_conferencing_provider_for_zoom
|
||||
16
lms/patches/v2_0/set_conferencing_provider_for_zoom.py
Normal file
16
lms/patches/v2_0/set_conferencing_provider_for_zoom.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
frappe.db.set_value(
|
||||
"LMS Batch",
|
||||
{"zoom_account": ["is", "set"]},
|
||||
"conferencing_provider",
|
||||
"Zoom",
|
||||
)
|
||||
frappe.db.set_value(
|
||||
"LMS Live Class",
|
||||
{"zoom_account": ["is", "set"]},
|
||||
"conferencing_provider",
|
||||
"Zoom",
|
||||
)
|
||||
Reference in New Issue
Block a user