What a difference a week — and a president election — makes: A Gallup poll shows that Americans have the most confidence in the U.S. economy in a year and a half.

Well, to put it more accurately, Republicans are suddenly much more optimistic. After Hillary Clinton’s surprise loss, Democrats are decidedly less so.

An economic confidence index produced by Gallup rose to +3 in the period from Nov. 9 to Nov. 13 from -10 in the span of Nov. 1 to Nov. 7. It’s the first positive reading since March 2015 in an index that has been negative all but a handful of times during President Barack Obama’s eight years in the White House.

The election results were the chief reason.

In the week before the election, just 16% of Republicans said the economy was getting better vs. 81% who said it was getting worse. Now 49% say the economy is improving and 44% say the opposite.

The reversal in attitudes among Democrats was not quite as dramatic. About 61% said the economy was getting better before the vote. Now just 46% see progress and a slightly larger percentage think the economy is faltering.

Gallup has previously found that political affiliation is strongly tied to how Americans feel about the economy. Republicans have generally been dour during the Obama years and Democrats more upbeat.

Come January, when Donald Trump becomes president, positions are likely to flip-flop. “Barring any major events, it is likely that Republicans will shift to a positive index score once the incoming president takes office, while Democrats’ confidence will take a hit,” Gallup noted.