From 46528deb5eeb912e4ef65e0ff41a3d32d27c5d14 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 30 Dec 2020 02:48:39 -0500 Subject: [PATCH 1/4] adjusted game diplay for half-inning changeover, changed title of web page --- main_controller.py | 7 +++++-- sql scripts/batting average leaders.sql | 8 ++++++++ sql scripts/pitching leaders.sql | 9 +++++++++ static/discord.png | Bin 0 -> 9103 bytes static/games_page.css | 14 ++++++++++---- static/loader.js | 2 +- templates/index.html | 17 +++-------------- the-prestige.pyproj | 1 + weather_notes.txt | 12 ++++++++++++ 9 files changed, 49 insertions(+), 21 deletions(-) create mode 100644 sql scripts/batting average leaders.sql create mode 100644 sql scripts/pitching leaders.sql create mode 100644 static/discord.png create mode 100644 weather_notes.txt diff --git a/main_controller.py b/main_controller.py index ddcd3b6..c8a6d1e 100644 --- a/main_controller.py +++ b/main_controller.py @@ -44,6 +44,8 @@ def update_loop(): state["update_text"] = "Play blall!" #they also need a timestamp state["delay"] -= 1 + state["display_top_of_inning"] = state["top_of_inning"] + if state["delay"] <= 0: if this_game.top_of_inning != state["top_of_inning"]: state["update_pause"] = 2 @@ -51,6 +53,7 @@ def update_loop(): state["batter"] = "-" if not state["top_of_inning"]: state["display_inning"] -= 1 + state["display_top_of_inning"] = False if state["update_pause"] == 1: state["update_emoji"] = "🍿" @@ -90,7 +93,7 @@ def update_loop(): state["bases"] = this_game.named_bases() - state["top_of_inning"] = this_game.top_of_inning + state["top_of_inning"] = this_game.top_of_inning states_to_send[game_time] = state @@ -100,4 +103,4 @@ def update_loop(): state["update_pause"] -= 1 socketio.emit("states_update", states_to_send) - time.sleep(1) \ No newline at end of file + time.sleep(3) \ No newline at end of file diff --git a/sql scripts/batting average leaders.sql b/sql scripts/batting average leaders.sql new file mode 100644 index 0000000..e731e6d --- /dev/null +++ b/sql scripts/batting average leaders.sql @@ -0,0 +1,8 @@ +SELECT name, + plate_appearances - (walks_taken + sacrifices) as atbats, + ROUND(hits*1.0 / (plate_appearances - (walks_taken + sacrifices)*1.0),3) as average, + ROUND(total_bases*1.0 / (plate_appearances - (walks_taken + sacrifices)*1.0),3) as slg, + ROUND((walks_taken + hits)*1.0/plate_appearances*1.0,3) as obp, + ROUND((walks_taken + hits)*1.0/plate_appearances*1.0,3) + ROUND(total_bases*1.0 / (plate_appearances - (walks_taken + sacrifices)*1.0),3) as ops +FROM stats WHERE plate_appearances > 50 +ORDER BY ops DESC; \ No newline at end of file diff --git a/sql scripts/pitching leaders.sql b/sql scripts/pitching leaders.sql new file mode 100644 index 0000000..d4885fb --- /dev/null +++ b/sql scripts/pitching leaders.sql @@ -0,0 +1,9 @@ +SELECT name, + outs_pitched, + ROUND(runs_allowed*27.0/(outs_pitched*1.0),3) as era, + ROUND((walks_allowed+hits_allowed)*3.0/(outs_pitched*1.0),3) as whip, + ROUND(walks_allowed*27.0/(outs_pitched*1.0),3) as bbper9, + ROUND(strikeouts_given*27.0/(outs_pitched*1.0),3) as kper9, + ROUND(strikeouts_given*1.0/walks_allowed*1.0,3) as kperbb +FROM stats WHERE outs_pitched > 150 +ORDER BY bbper9 ASC; \ No newline at end of file diff --git a/static/discord.png b/static/discord.png new file mode 100644 index 0000000000000000000000000000000000000000..49dde81caf2a4540b8a55358784bbccc007c2b58 GIT binary patch literal 9103 zcmb7pWlS7Ux9#BW4#nN2=wQX&DLNF_!C`QU6?bVV6fI6+a4%LUE(KZ!XK)#`xW9hM zeR;{f@5g&5Ston%teumbA3N);6R)eSf`?6w4FCY})KnGq0RUv!zjzoE<=?(TmAVQ5 zkTeAun)vEl`!jfYdpJ0|+B5hDdfGGC2RJ(b00B$2InLg865bzPwn%}<*MO9$Kbm5{ z&aWggYRbACf6tZMcxgEFU?>LMM*8lBJwJ55Y+AOGTky@h)cv{OzggLW$L`9$+&@r< zytiEMb(487eZRcrz6eWXB4F*Qn649*Ss#F(|Ghw4zrnn?8Mb)1*KoC@z?S8Ed}duW zl|8kj7~ML*2pF-XINZBXIG%iOaroHz>pp1Hd<^FJ+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- a/static/games_page.css +++ b/static/games_page.css @@ -1,4 +1,5 @@ @import url('https://fonts.googleapis.com/css2?family=Alegreya&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@700&display=swap'); body { background-image: url("prism.png"); } @@ -21,12 +22,17 @@ body { grid-row: 1; } -.h1 { - margin: auto; - width: 45%; - font-family: 'Alegreya', serif; +.link{ + position: relative; + top: 10px; } +.page_header { + color: white; + font-family: 'Goldman', cursive; +} + + .emptyslot { border: 2px dashed white; border-radius: 15px; diff --git a/static/loader.js b/static/loader.js index bb7190f..9591338 100644 --- a/static/loader.js +++ b/static/loader.js @@ -50,7 +50,7 @@ $(document).ready(function (){ const updateGame = (gamediv, gamestate) => { gamediv.id = "updateTarget"; - $('#updateTarget .inning').html("Inning: " + (gamestate.top_of_inning ? "🔼" : "🔽") + " " + gamestate.display_inning + "/" + gamestate.max_innings); + $('#updateTarget .inning').html("Inning: " + (gamestate.display_top_of_inning ? "🔼" : "🔽") + " " + gamestate.display_inning + "/" + gamestate.max_innings); $('#updateTarget .weather').html(gamestate.weather_emoji + " " + gamestate.weather_text); $('#updateTarget .away_name').html(gamestate.away_name); diff --git a/templates/index.html b/templates/index.html index af42576..debd205 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,22 +11,11 @@
-
-

game page ahoy

+
+ +
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/the-prestige.pyproj b/the-prestige.pyproj index 5f782b1..2b928ed 100644 --- a/the-prestige.pyproj +++ b/the-prestige.pyproj @@ -57,6 +57,7 @@ + diff --git a/weather_notes.txt b/weather_notes.txt new file mode 100644 index 0000000..06f6eff --- /dev/null +++ b/weather_notes.txt @@ -0,0 +1,12 @@ +fog + hit by pitch, pickoffs + hbp can either hit leg (reduces baserunning) or arm (reduces defense) + +heat wave + forces relief pitchers + +blizzard + makes pitchers bat + +light drizzle + runners start on second base at the start of each inning \ No newline at end of file From 90d7e04b52264cc441e890875aa84cf95c0f24b0 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 30 Dec 2020 03:01:40 -0500 Subject: [PATCH 2/4] Delete weather_notes.txt --- weather_notes.txt | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 weather_notes.txt diff --git a/weather_notes.txt b/weather_notes.txt deleted file mode 100644 index 06f6eff..0000000 --- a/weather_notes.txt +++ /dev/null @@ -1,12 +0,0 @@ -fog - hit by pitch, pickoffs - hbp can either hit leg (reduces baserunning) or arm (reduces defense) - -heat wave - forces relief pitchers - -blizzard - makes pitchers bat - -light drizzle - runners start on second base at the start of each inning \ No newline at end of file From 11d4cef2eea6d224ae672c67ed4c268353d7f54e Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 30 Dec 2020 03:08:32 -0500 Subject: [PATCH 3/4] reverted index, added classes to games_page for heading --- static/games_page.css | 8 +++++++- templates/index.html | 12 ++++++++++++ weather_notes.txt | 12 ------------ 3 files changed, 19 insertions(+), 13 deletions(-) delete mode 100644 weather_notes.txt diff --git a/static/games_page.css b/static/games_page.css index f862acd..f37bc70 100644 --- a/static/games_page.css +++ b/static/games_page.css @@ -27,12 +27,18 @@ body { top: 10px; } +.h1 { + margin: auto; + width: 45%; + color: white; + font-family: 'Alegreya', serif; +} + .page_header { color: white; font-family: 'Goldman', cursive; } - .emptyslot { border: 2px dashed white; border-radius: 15px; diff --git a/templates/index.html b/templates/index.html index debd205..6adf449 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,6 +16,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/weather_notes.txt b/weather_notes.txt deleted file mode 100644 index 06f6eff..0000000 --- a/weather_notes.txt +++ /dev/null @@ -1,12 +0,0 @@ -fog - hit by pitch, pickoffs - hbp can either hit leg (reduces baserunning) or arm (reduces defense) - -heat wave - forces relief pitchers - -blizzard - makes pitchers bat - -light drizzle - runners start on second base at the start of each inning \ No newline at end of file From ad13554843c0fe62f3150b187f578cdbc956161c Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 30 Dec 2020 03:38:20 -0500 Subject: [PATCH 4/4] fixed #70 --- static/loader.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/loader.js b/static/loader.js index af2ca01..ce7a915 100644 --- a/static/loader.js +++ b/static/loader.js @@ -34,11 +34,9 @@ $(document).ready(function (){ const insertGame = (gridboxnum, gamestate, timestamp) => { var thisBox = grid.children[gridboxnum]; + thisBox.className = "game"; + thisBox.timestamp = timestamp; fetch("/static/game.html").then(x=>x.text()).then(gamehtml => { - console.log(gamehtml) - console.log(thisBox) - thisBox.className = "game"; - thisBox.timestamp = timestamp; thisBox.innerHTML = gamehtml; updateGame(thisBox, gamestate); });