commit 113bf2aacbb84de7e90a89ef44090d27534a161d parent 4e78ac935f2e30499745da7fa1d3c014b06c5b5a Author: aditya-samal <samaladitya2004@gmail.com> Date: Tue, 2 Dec 2025 01:20:15 +0530 Fixed Stylesheet generation logic Diffstat:
| M | android/app/src/main/python/stylesheet_generator.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android/app/src/main/python/stylesheet_generator.py b/android/app/src/main/python/stylesheet_generator.py @@ -398,7 +398,7 @@ class UnifiedStyleEngine: candidates.append({"label": tag, "score": round(score, 2)}) candidates.sort(key=lambda x: x['score'], reverse=True) - if candidates: final_json["results"][category] = candidates + if candidates: final_json["results"][category] = candidates[:5] # 2. Process Typography if self.font_family_scores: