-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
lol need to untrack some files |
7cda0bf
to
fafe34c
Compare
ferry/database/diff_db.py
Outdated
old_value = ast.literal_eval(str(old_value).replace('"',"'")) # fix quotes | ||
new_value = ast.literal_eval(str(new_value).replace('"',"'")) |
There was a problem hiding this comment.
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
Hey! FYI there are three new tables in e5171dd — |
Thanks! will update |
lets DOOOO ITTTTTT |
Fix #303
Part of coursetable/coursetable#1656