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

feat: track database modifications, incremental updates #335

Open
wants to merge 54 commits into
base: master
Choose a base branch
from

Conversation

bearsyankees
Copy link
Member

@bearsyankees bearsyankees commented Oct 30, 2024

@bearsyankees
Copy link
Member Author

lol need to untrack some files

@Josh-Cena Josh-Cena changed the title Last mod feat: track database modifications, incremental updates Oct 30, 2024
Comment on lines 68 to 69
old_value = ast.literal_eval(str(old_value).replace('"',"'")) # fix quotes
new_value = ast.literal_eval(str(new_value).replace('"',"'"))
Copy link
Member

@Josh-Cena Josh-Cena Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure that strings in DB are JSON, not Python literals, so you can just use ujson.loads instead of ast.literal_eval. Also only perform the parsing if the value isn't already a list

@Josh-Cena
Copy link
Member

Josh-Cena commented Nov 12, 2024

Hey! FYI there are three new tables in e5171ddbuildingds, locations, and course_meetings, so you probably want to take them into account.

@reybahl
Copy link
Member

reybahl commented Nov 16, 2024

Hey! FYI there are three new tables in e5171ddbuildingds, locations, and course_meetings, so you probably want to take them into account.

Thanks! will update

@bearsyankees bearsyankees marked this pull request as ready for review November 20, 2024 02:00
@bearsyankees
Copy link
Member Author

lets DOOOO ITTTTTT

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

Successfully merging this pull request may close these issues.

Ferry should not redump the entire database
3 participants