def get_hot_factor(qdata, now, ageweight):
 ageweight = float((ageweight or 0.0))
 (link_name, hot, timestamp) = qdata
 return max((hot + (((now - timestamp) * ageweight) / 45000.0)), 1.0)

def get_hot_factor ( qdata , now , ageweight ) : ageweight = float ( ( ageweight or 0.0 ) ) ( link_name , hot , timestamp ) = qdata return max ( ( hot + ( ( ( now - timestamp ) * ageweight ) / 45000.0 ) ) , 1.0 )
return a "hot factor" score for a links hot tuple .