Skip to content

Commit

Permalink
Implement graph
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Dec 7, 2020
1 parent 4e67796 commit 92960f6
Show file tree
Hide file tree
Showing 18 changed files with 539 additions and 213 deletions.
554 changes: 341 additions & 213 deletions app.py

Large diffs are not rendered by default.

Empty file added data.json
Empty file.
Binary file added images/header.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions jsons/tabletop_games_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date": {"0": 2009, "1": 2010, "2": 2011, "3": 2012, "4": 2013, "5": 2014, "6": 2015, "7": 2016, "8": 2017, "9": 2018, "10": 2019, "11": 2020}, "value": {"0": 9878, "1": 156275, "2": 1896216, "3": 15676365, "4": 51922929, "5": 48689508, "6": 86373733, "7": 111467325, "8": 146959251, "9": 187953144, "10": 221722764, "11": 218610000}}
1 change: 1 addition & 0 deletions jsons/tabletop_games_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date": {"0": 2009, "1": 2010, "2": 2011, "3": 2012, "4": 2013, "5": 2014, "6": 2015, "7": 2016, "8": 2017, "9": 2018, "10": 2019, "11": 2020}, "successful": {"0": 4, "1": 19, "2": 109, "3": 434, "4": 946, "5": 1229, "6": 1396, "7": 1687, "8": 2084, "9": 2337, "10": 2713, "11": 2131}, "total": {"0": 7, "1": 48, "2": 233, "3": 880, "4": 1794, "5": 2245, "6": 1864, "7": 2650, "8": 3072, "9": 3282, "10": 3614, "11": 2992}}
1 change: 1 addition & 0 deletions jsons/tabletop_games_3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date": {"0": 2009, "1": 2010, "2": 2011, "3": 2012, "4": 2013, "5": 2014, "6": 2015, "7": 2016, "8": 2017, "9": 2018, "10": 2019, "11": 2020}, "value": {"0": 57.142857142857146, "1": 39.583333333333336, "2": 46.78111587982833, "3": 49.31818181818182, "4": 52.73132664437012, "5": 54.74387527839644, "6": 74.89270386266094, "7": 63.660377358490564, "8": 67.83854166666667, "9": 71.20658135283364, "10": 75.06917542888766, "11": 71.22326203208556}}
1 change: 1 addition & 0 deletions jsons/tabletop_games_4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date": {"0": 2009, "1": 2010, "2": 2011, "3": 2012, "4": 2013}, "value": {"0": [4, 15, 55, 170, 378, 549, 638, 771, 972, 1082, 1352, 1084], "1": [0, 4, 47, 202, 383, 472, 503, 598, 699, 758, 807, 610], "2": [0, 0, 6, 34, 95, 105, 122, 142, 175, 181, 198, 155], "3": [0, 0, 1, 23, 73, 93, 108, 136, 198, 235, 266, 201], "4": [0, 0, 0, 5, 17, 10, 25, 40, 40, 81, 90, 81]}, "label": {"0": "<= 10 mil", "1": "10 mil - 50 mil", "2": "50 mil - 100 mil", "3": "100 mil - 500 mil", "4": "> 500 mil"}}
1 change: 1 addition & 0 deletions jsons/tabletop_games_5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"date": {"0": 2009, "1": 2010, "2": 2011, "3": 2012, "4": 2013}, "value": {"0": [9878, 71281, 266692, 755133, 1808273, 2309626, 2667175, 3422646, 4024108, 4349426, 5154836, 3765091], "1": [0, 84994, 1055149, 4654696, 8768442, 11005662, 11661407, 13269422, 16160004, 16808322, 18454870, 13869142], "2": [0, 0, 402570, 2410473, 6672597, 7220572, 8631808, 9943153, 12218015, 12725168, 13961668, 10877883], "3": [0, 0, 171805, 3772740, 14012710, 16706485, 22426611, 30214901, 42547744, 50507438, 57734463, 45989983], "4": [0, 0, 0, 4083323, 20660907, 11447163, 40986732, 54617203, 72009380, 103562790, 126416927, 144107901]}, "label": {"0": "<= 10 mil", "1": "10 mil - 50 mil", "2": "50 mil - 100 mil", "3": "100 mil - 500 mil", "4": "> 500 mil"}}
1 change: 1 addition & 0 deletions jsons/timeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name_total": {"0": "Shorts", "1": "Tabletop Games", "2": "Comics"}, "name_success": {"0": "Shorts Exitosos", "1": "Tabletop Games Exitosos", "2": "Comics Exitosos"}, "x_total": {"0": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]], "1": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]], "2": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]]}, "y_total": {"0": [0, 0, 0, 0, 1, 1, 2, 1, 3, 12, 15, 14, 19, 16, 36, 52, 57, 84, 103, 133, 123, 133, 129, 157, 161, 204, 236, 195, 202, 131, 207, 227, 200, 220, 209, 194, 168, 169, 278, 286, 239, 206, 240, 200, 177, 177, 155, 147, 132, 180, 226, 240, 231, 205, 237, 217, 186, 172, 200, 212, 178, 190, 268, 227, 187, 98, 93, 105, 87, 89, 104, 51, 36, 35, 102, 60, 63, 50, 61, 68, 33, 74, 40, 50, 71, 48, 83, 82, 68, 54, 47, 46, 39, 44, 47, 37, 35, 37, 68, 50, 69, 51, 53, 43, 49, 50, 48, 42, 43, 48, 46, 58, 45, 32, 33, 28, 29, 35, 37, 37, 31, 49, 60, 47, 53, 36, 49, 29, 28, 40, 52, 30, 37, 38, 68, 49, 14, 16, 19, 32, 20, 0, 0, 0], "1": [0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 4, 1, 1, 1, 0, 3, 3, 6, 5, 7, 2, 5, 8, 7, 8, 7, 6, 12, 7, 19, 24, 25, 23, 31, 27, 44, 37, 37, 48, 53, 89, 74, 73, 78, 95, 102, 114, 80, 82, 79, 149, 128, 160, 171, 149, 168, 149, 197, 187, 175, 124, 138, 201, 198, 201, 180, 184, 190, 188, 210, 311, 120, 54, 85, 213, 138, 165, 174, 165, 157, 140, 254, 171, 148, 123, 133, 258, 238, 249, 233, 211, 209, 250, 313, 245, 188, 134, 238, 303, 252, 257, 270, 240, 268, 233, 308, 320, 249, 123, 237, 286, 285, 284, 308, 291, 253, 246, 367, 354, 248, 157, 264, 377, 355, 320, 299, 339, 280, 263, 379, 347, 234, 191, 475, 408, 285, 260, 312, 342, 365, 354, 0, 0, 0], "2": [0, 0, 0, 0, 0, 1, 1, 3, 1, 0, 2, 6, 0, 4, 10, 7, 17, 23, 32, 35, 22, 26, 25, 31, 26, 16, 29, 32, 48, 45, 44, 73, 84, 57, 51, 73, 40, 63, 88, 86, 127, 90, 104, 111, 115, 99, 100, 102, 62, 83, 118, 112, 103, 107, 127, 154, 123, 134, 125, 118, 68, 94, 145, 136, 93, 29, 23, 25, 30, 23, 34, 10, 9, 10, 37, 17, 28, 29, 24, 24, 14, 33, 2, 0, 0, 0, 0, 0, 0, 2, 16, 11, 9, 10, 15, 13, 11, 18, 21, 27, 13, 18, 14, 19, 10, 15, 31, 27, 17, 27, 36, 32, 31, 33, 26, 23, 20, 23, 21, 23, 9, 27, 24, 27, 32, 21, 30, 28, 19, 26, 29, 16, 10, 33, 19, 19, 26, 34, 30, 36, 30, 0, 0, 0]}, "x_success": {"0": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]], "1": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]], "2": [[2009, 1], [2009, 2], [2009, 3], [2009, 4], [2009, 5], [2009, 6], [2009, 7], [2009, 8], [2009, 9], [2009, 10], [2009, 11], [2009, 12], [2010, 1], [2010, 2], [2010, 3], [2010, 4], [2010, 5], [2010, 6], [2010, 7], [2010, 8], [2010, 9], [2010, 10], [2010, 11], [2010, 12], [2011, 1], [2011, 2], [2011, 3], [2011, 4], [2011, 5], [2011, 6], [2011, 7], [2011, 8], [2011, 9], [2011, 10], [2011, 11], [2011, 12], [2012, 1], [2012, 2], [2012, 3], [2012, 4], [2012, 5], [2012, 6], [2012, 7], [2012, 8], [2012, 9], [2012, 10], [2012, 11], [2012, 12], [2013, 1], [2013, 2], [2013, 3], [2013, 4], [2013, 5], [2013, 6], [2013, 7], [2013, 8], [2013, 9], [2013, 10], [2013, 11], [2013, 12], [2014, 1], [2014, 2], [2014, 3], [2014, 4], [2014, 5], [2014, 6], [2014, 7], [2014, 8], [2014, 9], [2014, 10], [2014, 11], [2014, 12], [2015, 1], [2015, 2], [2015, 3], [2015, 4], [2015, 5], [2015, 6], [2015, 7], [2015, 8], [2015, 9], [2015, 10], [2015, 11], [2015, 12], [2016, 1], [2016, 2], [2016, 3], [2016, 4], [2016, 5], [2016, 6], [2016, 7], [2016, 8], [2016, 9], [2016, 10], [2016, 11], [2016, 12], [2017, 1], [2017, 2], [2017, 3], [2017, 4], [2017, 5], [2017, 6], [2017, 7], [2017, 8], [2017, 9], [2017, 10], [2017, 11], [2017, 12], [2018, 1], [2018, 2], [2018, 3], [2018, 4], [2018, 5], [2018, 6], [2018, 7], [2018, 8], [2018, 9], [2018, 10], [2018, 11], [2018, 12], [2019, 1], [2019, 2], [2019, 3], [2019, 4], [2019, 5], [2019, 6], [2019, 7], [2019, 8], [2019, 9], [2019, 10], [2019, 11], [2019, 12], [2020, 1], [2020, 2], [2020, 3], [2020, 4], [2020, 5], [2020, 6], [2020, 7], [2020, 8], [2020, 9], [2020, 10], [2020, 11], [2020, 12]]}, "y_success": {"0": [0, 0, 0, 0, 0, 0, 1, 0, 0, 3, 6, 4, 5, 7, 20, 18, 25, 37, 44, 54, 51, 55, 53, 74, 73, 86, 109, 90, 95, 65, 98, 126, 100, 118, 121, 97, 109, 81, 167, 170, 122, 104, 123, 105, 85, 109, 93, 86, 76, 101, 148, 139, 127, 112, 131, 125, 105, 88, 114, 126, 123, 125, 165, 151, 108, 63, 56, 61, 46, 56, 45, 46, 36, 34, 60, 56, 41, 32, 47, 42, 23, 43, 35, 35, 44, 39, 54, 61, 39, 26, 28, 31, 26, 29, 27, 23, 17, 21, 42, 36, 44, 26, 25, 25, 32, 32, 27, 25, 31, 27, 35, 42, 34, 23, 19, 19, 20, 20, 28, 27, 20, 32, 42, 34, 30, 23, 32, 13, 21, 21, 42, 24, 26, 15, 34, 42, 7, 8, 11, 15, 5, 0, 0, 0], "1": [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 1, 0, 1, 0, 0, 1, 5, 1, 3, 0, 2, 3, 3, 5, 2, 1, 2, 3, 8, 10, 14, 12, 18, 12, 22, 17, 16, 23, 31, 38, 40, 38, 42, 45, 51, 53, 40, 42, 42, 85, 63, 98, 88, 82, 81, 81, 91, 110, 83, 62, 79, 114, 116, 116, 109, 98, 93, 102, 106, 135, 99, 54, 78, 135, 131, 123, 120, 144, 113, 109, 136, 142, 111, 62, 113, 169, 147, 155, 141, 128, 133, 139, 187, 181, 132, 73, 145, 207, 178, 180, 186, 160, 185, 157, 197, 224, 192, 75, 165, 212, 214, 174, 224, 208, 177, 168, 255, 255, 210, 111, 189, 305, 260, 233, 223, 240, 211, 197, 276, 271, 197, 114, 382, 340, 223, 210, 235, 264, 213, 150, 0, 0, 0], "2": [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 2, 2, 0, 2, 1, 3, 11, 7, 10, 15, 12, 8, 13, 11, 13, 9, 16, 20, 14, 24, 19, 32, 40, 22, 20, 32, 21, 28, 46, 37, 58, 37, 44, 56, 53, 49, 51, 40, 25, 48, 83, 58, 55, 57, 71, 70, 64, 69, 62, 53, 35, 52, 89, 69, 52, 18, 11, 10, 13, 9, 17, 7, 3, 4, 15, 14, 13, 16, 16, 12, 9, 14, 1, 0, 0, 0, 0, 0, 0, 2, 16, 11, 9, 10, 15, 13, 11, 18, 21, 27, 13, 18, 14, 19, 10, 15, 27, 19, 12, 21, 27, 22, 24, 29, 14, 18, 14, 15, 17, 22, 6, 22, 19, 19, 23, 16, 21, 16, 15, 16, 19, 14, 4, 24, 13, 13, 19, 25, 21, 22, 16, 0, 0, 0]}}
1 change: 1 addition & 0 deletions jsons/top25pledged.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Nombre":{"0":"Product Design","1":"Video Games","2":"Tabletop Games","3":"Gadgets","4":"Hardware","5":"Technology","6":"Documentary","7":"Animation","8":"Sound","9":"3D Printing","10":"Wearables","11":"Robots","12":"Design","13":"Apparel","14":"Food","15":"Music","16":"Camera Equipment","17":"Comics","18":"Playing Cards","19":"Narrative Film","20":"Shorts","21":"Art","22":"DIY Electronics","23":"Accessories","24":"Fashion"},"$ Recaudados":{"0":1625766509,"1":1244183967,"2":1132466875,"3":293191484,"4":289340699,"5":190396441,"6":180671661,"7":141372157,"8":112265451,"9":107731255,"10":106282446,"11":104079213,"12":99492945,"13":95131517,"14":93693758,"15":83684615,"16":79470321,"17":75964393,"18":74147530,"19":67331351,"20":61197569,"21":54116036,"22":50759376,"23":50332682,"24":49775524}}
1 change: 1 addition & 0 deletions jsons/top25successful.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Nombre": {"0": "Anthologies", "1": "Chiptune", "2": "Residencies", "3": "Dance", "4": "Tabletop Games", "5": "Comic Books", "6": "Theater", "7": "Country & Folk", "8": "Indie Rock", "9": "Classical Music", "10": "Anthologies", "11": "Performances", "12": "Comedy", "13": "Jazz", "14": "Graphic Novels", "15": "Plays", "16": "Illustration", "17": "Experimental", "18": "Festivals", "19": "Typography", "20": "Webcomics", "21": "Comedy", "22": "Shorts", "23": "Letterpress", "24": "Comics"}, "% \u00c9xitos": {"0": "78.36%", "1": "71.15%", "2": "69.66%", "3": "69.05%", "4": "66.53%", "5": "66.15%", "6": "65.41%", "7": "65.39%", "8": "65.21%", "9": "63.24%", "10": "62.61%", "11": "62.48%", "12": "62.1%", "13": "61.24%", "14": "60.15%", "15": "59.46%", "16": "59.4%", "17": "58.69%", "18": "57.95%", "19": "57.62%", "20": "57.51%", "21": "57.33%", "22": "56.75%", "23": "56.1%", "24": "55.3%"}}
1 change: 1 addition & 0 deletions jsons/topcategories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": {"0": "Shorts", "1": "Tabletop Games", "2": "Comics"}, "pledged": {"0": 61197569, "1": 1132466875, "2": 75964393}, "success": {"0": 56.75, "1": 66.53, "2": 55.3}}
7 changes: 7 additions & 0 deletions kickstarter/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
MonthlyCategoriesSuccessModel,
MonthlyCategoriesTotalsModel,
SuccessfulCategoriesModel,
TabletopGamesModel,
process,
)

Expand Down Expand Up @@ -45,6 +46,7 @@ def get_favorite_categories(
MonthlyCategoriesSuccessModel,
MonthlyCategoriesTotalsModel,
Dict[int, Tuple[List[int], List[int]]],
TabletopGamesModel,
]:
results = process(projects, categories)
grossing_categories: List[CategoryModel] = []
Expand All @@ -55,6 +57,7 @@ def get_favorite_categories(
None
) # type: ignore
monthly_categories_totals_model: MonthlyCategoriesTotalsModel = None # type: ignore
tabletop_games_model: TabletopGamesModel = None # type: ignore
for item in results:
if isinstance(item, GrossingCategoriesModel):
item = cast(GrossingCategoriesModel, item)
Expand All @@ -70,6 +73,9 @@ def get_favorite_categories(
elif isinstance(item, MonthlyCategoriesTotalsModel):
item = cast(MonthlyCategoriesTotalsModel, item)
monthly_categories_totals_model = item
elif isinstance(item, TabletopGamesModel):
item = cast(TabletopGamesModel, item)
tabletop_games_model = item
grossing_categories_set = set(grossing_categories)
successful_categories_set = set(successful_categories)
inter = cast(
Expand Down Expand Up @@ -97,4 +103,5 @@ def get_favorite_categories(
monthly_categories_success_model,
monthly_categories_totals_model,
by_months,
tabletop_games_model,
)
1 change: 1 addition & 0 deletions kickstarter/processing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
MonthlyCategoriesTotalsModel,
monthly_categories_totals,
)
from .tabletop_games import TabletopGamesModel, tabletop_games # noqa: F401
from .top_grossing_categories import ( # noqa: F401
GrossingCategoriesModel,
top_grossing_categories,
Expand Down
Loading

0 comments on commit 92960f6

Please sign in to comment.