Spencer Pratt has spent months waging a guerilla campaign against incumbent Los Angeles Mayor Karen Bass, riding the buzz generated by AI-generated videos, viral moments and some big-name supporters as he seeks to capitalize on dissatisfaction with the way the city is being run.

He may now have five more months to make his case.

Bass secured a spot on the November ballot and Pratt was running in second place as of early Wednesday morning, ahead of progressive city councilwoman Nithya Raman and 11 lesser-known candidates as more ballots were being counted. No candidate appears likely to exceed the 50% threshold to win outright, which means the top two will meet head-to-head in the November election.

In the overwhelmingly Democratic city, Pratt, a former reality television star and registered Republican, would be the clear underdog against Bass, a former state lawmaker and congresswoman with support from the city’s labor unions.

Still, roughly three in five voters in Los Angeles sought to oust their mayor on Tuesday in the primary, in which candidates don’t have party labels.