aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

"test" button results in the database ID being incremented, why? #35

Closed leoscholl closed 3 years ago

leoscholl commented 3 years ago

maybe my imagination but i think sometimes task entries appear in the database which were never meant to be saved, i.e. they were run using the "test" button.

in any case, the database clearly increments the ID for every experiment, even though it doesn't need to keep track of those "test" runs.

leoscholl commented 3 years ago

still unsure why this was done, but clearly in db.tracker.ajax.start_experiment() a new task entry is made whether or not the start experiment button is used, and then subsequently deleted if the test button was used. very strange design but i'm not going to change it without a better reason than "it makes the numbers go higher". haven't seen any more evidence of things getting saved when they shouldn't be.