style markdown cells
This commit is contained in:
@@ -69,7 +69,9 @@ def print_score_table(wordle_day, scores):
|
|||||||
print_missing_names(wordle_day, scoreless_names)
|
print_missing_names(wordle_day, scoreless_names)
|
||||||
|
|
||||||
|
|
||||||
def _save_db_scores(wordle_day: wordlinator.utils.WordleDay, scores: dict):
|
def _save_db_scores(
|
||||||
|
wordle_day: wordlinator.utils.WordleDay, scores: dict, twitter_scores
|
||||||
|
):
|
||||||
db = wordlinator.db.pg.WordleDb()
|
db = wordlinator.db.pg.WordleDb()
|
||||||
hole_data = wordle_day.golf_hole
|
hole_data = wordle_day.golf_hole
|
||||||
if not hole_data:
|
if not hole_data:
|
||||||
@@ -145,7 +147,7 @@ async def main_update(
|
|||||||
updated_scores = sheets_client.update_scores(today_scores)
|
updated_scores = sheets_client.update_scores(today_scores)
|
||||||
|
|
||||||
rich.print("[green]Saving scores in db...")
|
rich.print("[green]Saving scores in db...")
|
||||||
_save_db_scores(wordle_day, updated_scores)
|
_save_db_scores(wordle_day, updated_scores, today_scores)
|
||||||
|
|
||||||
print_score_table(wordle_day, today_scores)
|
print_score_table(wordle_day, today_scores)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import functools
|
import functools
|
||||||
|
import pathlib
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import dash
|
import dash
|
||||||
@@ -18,7 +19,10 @@ import wordlinator.utils.web
|
|||||||
# Setup Functions #
|
# Setup Functions #
|
||||||
###################
|
###################
|
||||||
|
|
||||||
app = dash.Dash(name="WordleGolf", title="#WordleGolf")
|
assets_dir = pathlib.Path(__file__).parent / "assets"
|
||||||
|
app = dash.Dash(
|
||||||
|
name="WordleGolf", title="#WordleGolf", assets_folder=str(assets_dir.resolve())
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_ttl_hash(seconds=600):
|
def get_ttl_hash(seconds=600):
|
||||||
|
|||||||
4
wordlinator/web/assets/style.css
Normal file
4
wordlinator/web/assets/style.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user