chore: fixed settings

This commit is contained in:
Jannat Patel
2025-04-22 16:17:29 +05:30
committed by safe user
parent 3d81a63410
commit 4128f0fb73
7 changed files with 37 additions and 11 deletions
+4
View File
@@ -2167,3 +2167,7 @@ def get_palette(full_name):
hash_name = hashlib.md5(encoded_name).hexdigest()
idx = cint((int(hash_name[4:6], 16) + 1) / 5.33)
return palette[idx % 8]
def persona_captured():
frappe.db.set_single_value("LMS Settings", "persona_captured", 1)