Ferrari boss Maurizio Arrivabene said the Italian squad never expected to fight for victory in the Hungarian Grand Prix after a difficult Friday.
Sebastian Vettel took his second win of the 2015 season at the Hungaroring after controlling the race from the start, having overtaken the front row-starting Mercedes from third on the grid.
Although Vettel faced little opposition from his rivals during the race, Arrivabene conceded the team was not hopeful after the first two practice sessions.
"Of course we were not thinking to win the race, but at least to fight," Arrivabene said.
"Then, everything happened on Friday, so Saturday the first thought was 'guys, calm down, we need to do our analysis, put everything together'."
Worst day of Allison's career
The Italian team boss said Ferrari's technical director James Allison had described Friday as the "worst day of his career" before the Maranello squad managed to turn things around on Saturday.
"On Friday, we were struggling a lot," said Arrivabene.
"At one stage, James Allison said to me 'look if I have to think about one day, today is the worst day of my career'.
"But we put together everything. We were working with determination and this is telling you everything about this team that is getting together."