Verifique se a hora é 24 horas python mais antiga

from datetime import datetime, timedelta

if (datetime.utcnow() - last_updated) > timedelta(1): 
    # more than 24 hours passed
Itchy Impala