The heavy French losses at the Battle of Gaouz encouraged an increase in tribal activity across the south-east of Morocco, threatening the French presence at Boudenib.  Poeymirau was forced to withdraw garrisons from outlying posts in the Tafilalt, including that at Tighmart, to concentrate his force and reduce the risk of further disasters.  Lyautey authorised only a series of limited offensives, such as the razing of villages and gardens, the primary aim of which was to emphasise French military superiority.  The French struggled to move troops through the mountain passes from the Moulouya Valley due to heavy snows and attacks on their columns, and Lyautey, to his embarrassment, was forced to request reinforcements from Algeria.  By October the situation had stabilised to the extent that Poeymirau was able to withdraw his troops to Meknes, but a large-scale uprising in January 1919 forced his return.  Poeymirau defeated n'Ifrutant in battle at Meski on 15 January, but was seriously wounded in the chest by the accidental explosion of an artillery shell and was forced to hand command to Colonel Antoine Huré.  Lyautey then received assistance from Thami El Glaoui, a tribal leader who Lyautey had made Pasha of Marrakesh after the uprising of 1912.  El Glaoui owed his increasing wealth  to corruption and fraud, which the French tolerated in return for his support.  Thus committed to Lyautey's cause, El Glaoui led an army of 10,000 men, the largest Moroccan tribal force ever seen, across the Atlas to defeat anti-French tribesmen in the Dadès Gorges and to reinforce the garrison at Boudenib on 29 January.  The uprising was over by 31 January 1919.
Question: How many days did it take before the uprising was over in January 1919?
Answer: 2