Modify mock reports data to be near current date, not in the future

This commit is contained in:
Andrew Croce 2018-09-19 10:45:01 -04:00
parent d4e8dcd0a6
commit f7e68568f8

View File

@ -4,151 +4,141 @@ from itertools import groupby
MONTHLY_SPEND_AARDVARK = { MONTHLY_SPEND_AARDVARK = {
"LC04": { "LC04": {
"Integ": { "Integ": {
"10/2018": 284, "02/2018": 284,
"11/2018": 1210, "03/2018": 1210,
"12/2018": 1430, "04/2018": 1430,
"01/2019": 1366, "05/2018": 1366,
"02/2019": 1169, "06/2018": 1169,
"03/2019": 991, "07/2018": 991,
"04/2019": 978, "08/2018": 978,
"05/2019": 737, "09/2018": 737,
}, },
"PreProd": { "PreProd": {
"10/2018": 812, "02/2018": 812,
"11/2018": 1389, "03/2018": 1389,
"12/2018": 1425, "04/2018": 1425,
"01/2019": 1306, "05/2018": 1306,
"02/2019": 1112, "06/2018": 1112,
"03/2019": 936, "07/2018": 936,
"04/2019": 921, "08/2018": 921,
"05/2019": 694, "09/2018": 694,
}, },
"Prod": { "Prod": {
"10/2018": 1742, "02/2018": 1742,
"11/2018": 1716, "03/2018": 1716,
"12/2018": 1866, "04/2018": 1866,
"01/2019": 1809, "05/2018": 1809,
"02/2019": 1839, "06/2018": 1839,
"03/2019": 1633, "07/2018": 1633,
"04/2019": 1654, "08/2018": 1654,
"05/2019": 1103, "09/2018": 1103,
}, },
}, },
"SF18": { "SF18": {
"Integ": { "Integ": {
"12/2018": 1498, "04/2018": 1498,
"01/2019": 1400, "05/2018": 1400,
"02/2019": 1394, "06/2018": 1394,
"03/2019": 1171, "07/2018": 1171,
"04/2019": 1200, "08/2018": 1200,
"05/2019": 963, "09/2018": 963,
}, },
"PreProd": { "PreProd": {
"12/2018": 1780, "04/2018": 1780,
"01/2019": 1667, "05/2018": 1667,
"02/2019": 1703, "06/2018": 1703,
"03/2019": 1474, "07/2018": 1474,
"04/2019": 1441, "08/2018": 1441,
"05/2019": 933, "09/2018": 933,
}, },
"Prod": { "Prod": {
"12/2018": 1686, "04/2018": 1686,
"01/2019": 1779, "05/2018": 1779,
"02/2019": 1792, "06/2018": 1792,
"03/2019": 1570, "07/2018": 1570,
"04/2019": 1539, "08/2018": 1539,
"05/2019": 986, "09/2018": 986,
}, },
}, },
"Canton": { "Canton": {
"Prod": { "Prod": {
"01/2019": 28699, "05/2018": 28699,
"02/2019": 26766, "06/2018": 26766,
"03/2019": 22619, "07/2018": 22619,
"04/2019": 24090, "08/2018": 24090,
"05/2019": 16719, "09/2018": 16719,
} }
}, },
"BD04": { "BD04": {
"Integ": {}, "Integ": {},
"PreProd": { "PreProd": {
"10/2018": 7019, "02/2018": 7019,
"11/2018": 3004, "03/2018": 3004,
"12/2018": 2691, "04/2018": 2691,
"01/2019": 2901, "05/2018": 2901,
"02/2019": 3463, "06/2018": 3463,
"03/2019": 3314, "07/2018": 3314,
"04/2019": 3432, "08/2018": 3432,
"05/2019": 723, "09/2018": 723,
}, },
}, },
"SCV18": {"Dev": {"05/2019": 9797}}, "SCV18": {"Dev": {"05/2019": 9797}},
"Crown": { "Crown": {
"CR Portal Dev": { "CR Portal Dev": {
"11/2018": 208, "03/2018": 208,
"12/2018": 457, "04/2018": 457,
"01/2019": 671, "05/2018": 671,
"02/2019": 136, "06/2018": 136,
"03/2019": 1524, "07/2018": 1524,
"04/2019": 2077, "08/2018": 2077,
"05/2019": 1858, "09/2018": 1858,
}, },
"CR Staging": { "CR Staging": {
"11/2018": 208, "03/2018": 208,
"12/2018": 457, "04/2018": 457,
"01/2019": 671, "05/2018": 671,
"02/2019": 136, "06/2018": 136,
"03/2019": 1524, "07/2018": 1524,
"04/2019": 2077, "08/2018": 2077,
"05/2019": 1858, "09/2018": 1858,
}, },
"CR Portal Test 1": {"03/2019": 806, "04/2019": 1966, "05/2019": 2597}, "CR Portal Test 1": {"07/2018": 806, "08/2018": 1966, "09/2018": 2597},
"Jewels Prod": {"03/2019": 806, "04/2019": 1966, "05/2019": 2597}, "Jewels Prod": {"07/2018": 806, "08/2018": 1966, "09/2018": 2597},
"Jewels Dev": { "Jewels Dev": {
"11/2018": 145, "03/2018": 145,
"12/2018": 719, "04/2018": 719,
"01/2019": 1243, "05/2018": 1243,
"02/2019": 2214, "06/2018": 2214,
"03/2019": 2959, "07/2018": 2959,
"04/2019": 4151, "08/2018": 4151,
"05/2019": 4260, "09/2018": 4260,
}, },
}, },
} }
CUMULATIVE_BUDGET_AARDVARK = { CUMULATIVE_BUDGET_AARDVARK = {
"10/2018": {"spend": 9857, "cumulative": 9857}, "02/2018": {"spend": 9857, "cumulative": 9857},
"11/2018": {"spend": 7881, "cumulative": 17738}, "03/2018": {"spend": 7881, "cumulative": 17738},
"12/2018": {"spend": 14010, "cumulative": 31748}, "04/2018": {"spend": 14010, "cumulative": 31748},
"01/2019": {"spend": 43510, "cumulative": 75259}, "05/2018": {"spend": 43510, "cumulative": 75259},
"02/2019": {"spend": 41725, "cumulative": 116984}, "06/2018": {"spend": 41725, "cumulative": 116984},
"03/2019": {"spend": 41328, "cumulative": 158312}, "07/2018": {"spend": 41328, "cumulative": 158312},
"04/2019": {"spend": 47491, "cumulative": 205803}, "08/2018": {"spend": 47491, "cumulative": 205803},
"05/2019": {"spend": 45826, "cumulative": 251629}, "09/2018": {"spend": 45826, "cumulative": 251629},
"06/2019": {"projected": 296511},
"07/2019": {"projected": 341393},
"08/2019": {"projected": 386274},
"09/2019": {"projected": 431156},
} }
MONTHLY_SPEND_BELUGA = { MONTHLY_SPEND_BELUGA = {
"NP02": { "NP02": {
"Integ": {"02/2019": 284, "03/2019": 1210}, "Integ": {"08/2018": 284, "09/2018": 1210},
"PreProd": {"02/2019": 812, "03/2019": 1389}, "PreProd": {"08/2018": 812, "09/2018": 1389},
"Prod": {"02/2019": 3742, "03/2019": 4716}, "Prod": {"08/2018": 3742, "09/2018": 4716},
}, },
"FM": {"Integ": {"03/2019": 1498}, "Prod": {"03/2019": 5686}}, "FM": {"Integ": {"08/2018": 1498}, "Prod": {"09/2018": 5686}},
} }
CUMULATIVE_BUDGET_BELUGA = { CUMULATIVE_BUDGET_BELUGA = {
"02/2019": {"spend": 4838, "cumulative": 4838}, "08/2018": {"spend": 4838, "cumulative": 4838},
"03/2019": {"spend": 14500, "cumulative": 19338}, "09/2018": {"spend": 14500, "cumulative": 19338},
"04/2019": {"projected": 29007},
"05/2019": {"projected": 38676},
"06/2019": {"projected": 48345},
"07/2019": {"projected": 58014},
"08/2019": {"projected": 67683},
"09/2019": {"projected": 77352},
} }