Skip to content

Commit

Permalink
Python 3.12 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbirchard committed Dec 24, 2024
1 parent d364b4a commit 488d463
Show file tree
Hide file tree
Showing 6 changed files with 1,547 additions and 106 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $(VIRTUAL_ENV):

.PHONY: run
run: env
$(LOCAL_PYTHON) -m gunicorn --config=gunicorn.conf.py
$(LOCAL_PYTHON) -m gunicorn --config=gunicorn.conf.py wsgi:app

.PHONY: install
install: env
Expand Down Expand Up @@ -89,4 +89,5 @@ clean:
find . -type d -wholename './logs/*' -exec rm -rf {} +
find . -type d -wholename './.reports/*' -exec rm -rf {} +
find . -type d -wholename '**/.webassets-cache/' -exec rm -rf {} +
rm -rf './pythonmyadmin/static/.webassets-cache/'
find . -type d -wholename 'dist' -exec rm -rf {} +
rm -rf './broiestbot_db/static/.webassets-cache/'
6 changes: 2 additions & 4 deletions clients/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ def get_table_data(self) -> DataFrame:
:returns: DataFrame
"""
table_df = pd.read_sql_table(
self.table, con=self.engine, index_col="id", parse_dates="created_at", chunksize=None
)
table_df.sort_values("created_at", ascending=False, inplace=True)
table_df = pd.read_sql_table(self.table, con=self.engine, index_col="id", parse_dates="created_at")
table_df.sort_index(inplace=True, ascending=False)
table_df["created_at"] = table_df["created_at"].dt.strftime("%m/%d/%Y")
return table_df

Expand Down
Loading

0 comments on commit 488d463

Please sign in to comment.