Heart of Midlothian beat Latvian side RFS 2-1 in Thursday night's Europa Conference League matchday five game at Tynecastle.
Goals in the opening 12 minutes from Lawrence Shankland and Andy Halliday had Hearts in command but Kevin Friesenbichler pulled one back.
It was a second win in Group A for Robbie Neilson's men but Fiorentina's victory over Istanbul Basaksehir means those clubs will finish first and second.