UiL-OTS-labs / web-experiment-datastore

Other
0 stars 0 forks source link

impossible to delete DataPoints in some cases #77

Closed bbonf closed 3 months ago

bbonf commented 5 months ago

not sure why yet, but the on_datapoint_delete signal complains about not finding the participant session

bbonf commented 5 months ago

a temporary workaround is to manually delete the relevant datapoints from the django shell:

from experiments.models import *

ex_id = ...

DataPoint.objects.filter(experiment=ex_id).update(session=None)
DataPoint.objects.filter(experiment=ex_id).delete()