The surprising and divisive mayoral campaign of right-wing reality TV star Spencer Pratt came to an end on Monday, when Los Angeles City Councilmember Nithya Raman, a member of the Democratic Socialists of America, claimed her spot on the general election ballot against incumbent Mayor Karen Bass.

The second-place finish for Raman means that in the coming months, Bass will have to grapple with a challenger from her left. The incumbent mayor’s establishment bonafides at once lend her a strong political apparatus and make her the object of voter frustration. Raman, meanwhile, will face an uphill battle against the entrenched Democratic machine, which helped Bass easily secure a first-place finish. The embrace of mail-in voting by Angelenos slowly turned the tide for Raman, who initially trailed Pratt when polls closed last Tuesday.

Under California’s nonpartisan, open primary system, all viable candidates stood for the same June election — putting Pratt, a Republican, in the same primary as the heavily Democratic field. The top two advance to a runoff in November, meaning Los Angeles voters will choose between two Democrats in the general election ballot.

The emergence of Pratt, who rode a wave of outside conservative funding, prompted an intense debate among the city’s left on how to vote in the open primary. Rae Huang entered the race early on a progressive platform of strident police accountability measures, free and fast buses, and public housing. Raman, a city councilmember, decided to run at the last moment, with polls quickly showing she had a clearer path to a November runoff to fend off Pratt. Huang and her supporters insisted that she had the bolder leftist vision for the city, while Raman’s backers accused the Huang campaign of splitting the left amid a real threat from Pratt. The left is now faced with the task of repairing its fractures ahead of the November runoff.