Performance optimizations: - Pre-load database materials into HashSet (O(1) lookup) instead of O(n) per material query - Add 60s safety timeout on loading waits to prevent deadlocks - Simplify navigation loop with while True pattern Code quality improvements: - Replace print-based logging with proper logging module - Add _get_input_value() helper to reduce duplication - Move all imports to top of file (re, time, TimeoutError) - Remove redundant docstrings and consolidate logic - Add detailed module docstring explaining optimizations Bug fixes: - Fix iframe variable naming conflicts (detail_main_frame, detail_inner_frame) - Add error handling for individual order processing failures - Simplify setup_query_interface() logic - Change password to placeholder for security Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
9.8 KiB
9.8 KiB