Update 531.py

Cleaned up the rest day / already logged part