Files
frappe-lms/lms/patches/v2_0/fix_livecode_url_default.py
Leo Daniel A f2807d3e38 fix: LiveCodeSession reference error and UI loading state (#2218)
* fix: LiveCodeSession reference error and UI loading state

* fix: remove trailing slash from livecode_url in LMS Settings and add patch to update existing records

* fix: remove reload function in patch file and update live_code_url default value by administrator

---------

Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
2026-03-19 17:55:24 +05:30

8 lines
244 B
Python

import frappe
def execute():
livecode_url = frappe.db.get_single_value("LMS Settings", "livecode_url")
if livecode_url == "https://falcon.frappe.io/":
frappe.db.set_single_value("LMS Settings", "livecode_url", "https://falcon.frappe.io")