from data_comparator import KSTCoordiComparator def test_simplified_interface(): comparator = KSTCoordiComparator('data/sample-data.xlsx') if comparator.load_data(): summary = comparator.get_comparison_summary() print("=== SIMPLIFIED INTERFACE TEST ===") print(f"Matched items (Summary tab): {summary['matched_items_count']}") total_different = (summary['mismatches']['kst_only_count'] + summary['mismatches']['coordi_only_count'] + summary['mismatches']['kst_duplicates_count'] + summary['mismatches']['coordi_duplicates_count']) print(f"Different items (Different tab): {total_different}") print() print("Sample items from Different tab (first 5):") # Show KST-only items kst_only = summary['mismatch_details']['kst_only'][:3] for item in kst_only: print(f"KST: {item['title']} - Episode {item['episode']} | Coordi: (empty) | Reason: Only appears in KST") # Show Coordi-only items coordi_only = summary['mismatch_details']['coordi_only'][:2] for item in coordi_only: print(f"KST: (empty) | Coordi: {item['title']} - Episode {item['episode']} | Reason: Only appears in Coordi") print(f"\nāœ… Interface ready at http://localhost:8080") print("āœ… Two tabs: Summary (matched items) and Different (mismatches)") print("āœ… Korean title + episode sorting implemented") if __name__ == "__main__": test_simplified_interface()