Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Postgres script doesnt work. #117

Closed
oyusof1 opened this issue Jan 3, 2025 · 5 comments
Closed

Refresh Postgres script doesnt work. #117

oyusof1 opened this issue Jan 3, 2025 · 5 comments

Comments

@oyusof1
Copy link

oyusof1 commented Jan 3, 2025

With a docker postgres container, running the refresh script does not update the DB.
I have a print statement to print out the max season ID and it is showing None

❯ scripts/refresh_postgres.sh
Loading seasons: ['2024-25'].
Connecting to postgres database.
None

            Error: option '--current-season-mode' passed on an uninitialized database.
            First load a season using the '--default-mode' flag!

The DB is initialized and the seasons table is populated (which is where the initialized db check happens)

Im currently dropping tables and recreating the db to get the latest data which is slightly cumbersome

@mpope9
Copy link
Owner

mpope9 commented Jan 3, 2025

Hi, I'll look into it this weekend. I have not refreshed the current season yet, maybe something is broken.

@oyusof1
Copy link
Author

oyusof1 commented Jan 9, 2025

Hey, any updates?

@mpope9
Copy link
Owner

mpope9 commented Jan 9, 2025

What tables do you not see updating?

@mpope9
Copy link
Owner

mpope9 commented Jan 9, 2025

Oh nvm I just reread your bug report. Do you recall how you initially populated the DB?

@mpope9
Copy link
Owner

mpope9 commented Jan 9, 2025

I have merged a fix: #118 I usually run with SQLite myself so I had not caught this one when the new season switched over. Thank you for the bug report. Please re-open if this doesn't work for you.

@mpope9 mpope9 closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants