Wrong uprising. You’re probably thinking about the Paris Commune uprising during the Franco-Prussian War. And that didn’t actually occur until after France had lost the war. The uprising in Les Miserables is an unrelated event that took place in 1832.
Thanks, that has always been a source of confusion.