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

Support components that were re-created in gretel-upload #88

Open
tijmenbaarda opened this issue Apr 18, 2023 · 0 comments
Open

Support components that were re-created in gretel-upload #88

tijmenbaarda opened this issue Apr 18, 2023 · 0 comments
Assignees

Comments

@tijmenbaarda
Copy link

The backend currently supports user-uploaded components by adding them to the Django database on the fly, and by doing that it counts the number of sentences and words for the sake of progress measurement, but it does not test if these components have been changed or re-created in the meantime.

This can be solved by checking if the last-changed date of the BaseX database is later than the creation date of the component entry in the Django database. If so, the database entry has to be updated. This also needs to happen if a cached query is available.

@tijmenbaarda tijmenbaarda self-assigned this Apr 18, 2023
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

1 participant