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

fix(annotator): load prev/next tasks according to datetime #178

Conversation

ElodieENSTA
Copy link
Member

@ElodieENSTA ElodieENSTA commented Jan 17, 2024

fix #173

…task id

Evolution of seed to match production reality
@ElodieENSTA ElodieENSTA added this to the v1.7 milestone Jan 17, 2024
@ElodieENSTA ElodieENSTA self-assigned this Jan 17, 2024
@@ -242,7 +242,7 @@ def _create_annotation_campaigns(self):
campaign.datasets.add(dataset)
campaign.spectro_configs.add(dataset.spectro_configs.first())
tasks = []
for file in dataset.files.all():
for file in dataset.files.all().order_by("?"):
Copy link
Member Author

Choose a reason for hiding this comment

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

order_by('?') is used to shuffle the liste to differentiate id sorting of datetime sorting, which are differents in production.

@ElodieENSTA ElodieENSTA merged commit b6cba06 into master Jan 22, 2024
3 checks passed
@ElodieENSTA ElodieENSTA deleted the feature/osmose-app-173-Load-next-task-doesn't-load-next-consecutive-task branch January 22, 2024 07:52
@ElodieENSTA ElodieENSTA restored the feature/osmose-app-173-Load-next-task-doesn't-load-next-consecutive-task branch January 22, 2024 11:19
@ElodieENSTA ElodieENSTA deleted the feature/osmose-app-173-Load-next-task-doesn't-load-next-consecutive-task branch January 22, 2024 11:19
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.

Load next task doesn't load next consecutive task
1 participant