Add File Watcher for External Command Control #91
BugBot Review
BugBot completed review and found 2 potential issues
Request ID: serverGenReqId_24e95918-1f90-43a5-94fe-5b2dd9203f48
Details
Bug: Incorrect Attribute Access Causes Errors
In the _show_monitoring_status method, the code accesses target.location_name when listing recent targets. This will cause an AttributeError because the MonitoringTarget model's attribute is display_name. Additionally, target.location_id can be null for geographic targets and should be handled to avoid displaying "None".
src/local_dev/console_discord.py#L279-L282
DisPinMap/src/local_dev/console_discord.py
Lines 279 to 282 in 9acb168
Bug: Syntax Check Command Fails with Glob Patterns
The Python syntax check command python -m py_compile src/**/*.py is incorrect. The py_compile module expects individual file paths, not glob patterns, and the ** recursive glob may not be supported by all shells, leading to the check failing.
scripts/run_all_checks.sh#L69-L72
DisPinMap/scripts/run_all_checks.sh
Lines 69 to 72 in 9acb168
Was this report helpful? Give feedback by reacting with π or π