Update dashboard.py

fix:it's not working when batch deletes