feat: notifications
This commit is contained in:
13
lms/patches/v2_0/add_discussion_topic_titles.py
Normal file
13
lms/patches/v2_0/add_discussion_topic_titles.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
topics = frappe.get_all(
|
||||
"Discussion Topic",
|
||||
{"title": ["is", "not set"]},
|
||||
["name", "reference_docname", "title"],
|
||||
)
|
||||
|
||||
for topic in topics:
|
||||
if not topic.title:
|
||||
frappe.db.set_value("Discussion Topic", topic.name, "title", topic.reference_docname)
|
||||
Reference in New Issue
Block a user