Hot stuff now only gives recent hot stuff(1 week)

Please someone improve the code for I am not confident on what I've
done.