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

Fixed a bug #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed a bug #2

wants to merge 1 commit into from

Conversation

BiKC
Copy link

@BiKC BiKC commented Sep 2, 2021

Following code:

for v in mrg_form_values:
    form.insert(4, mrg_form_values.pop(-1))

pops of the last elements of a list while looping over the list, essentially shortening the list while looping. This would skip the first half of the files when submitting multiple query files (more than 2).

Current fix just loops for the number of files in the initial list instead of looping over the list. So it does not care if the list becomes shorter during the loop.

Alternatively you could also loop over the list backwards.

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.

1 participant