def is_errant_log(log):
 return (((log.should_hide is not True) and ((log.action in mdl.NodeLog.PROJECT_REGISTERED) and (log.user is None) and (log.date.hour == 4) and (log.date.minute == 0))) or ((log.action in mdl.NodeLog.REGISTRATION_APPROVAL_APPROVED) and (log.date.hour == 4) and (log.date.minute == 0)))

def is_errant_log ( log ) : return ( ( ( log . should_hide is not True ) and ( ( log . action in mdl . NodeLog . PROJECT_REGISTERED ) and ( log . user is None ) and ( log . date . hour == 4 ) and ( log . date . minute == 0 ) ) ) or ( ( log . action in mdl . NodeLog . REGISTRATION_APPROVAL_APPROVED ) and ( log . date . hour == 4 ) and ( log . date . minute == 0 ) ) )
the approve_registration script saves 2 log types: - project_registered - registration_approval_approved .