style markdown cells

This commit is contained in:
2022-06-13 17:29:57 -05:00
parent d8240aeae0
commit d79a6be274
3 changed files with 13 additions and 3 deletions

View File

@@ -69,7 +69,9 @@ def print_score_table(wordle_day, scores):
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()
hole_data = wordle_day.golf_hole
if not hole_data:
@@ -145,7 +147,7 @@ async def main_update(
updated_scores = sheets_client.update_scores(today_scores)
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)

View File

@@ -1,5 +1,6 @@
import datetime
import functools
import pathlib
import time
import dash
@@ -18,7 +19,10 @@ import wordlinator.utils.web
# 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):

View File

@@ -0,0 +1,4 @@
p {
margin-bottom: 0;
text-align: center;
}