Experiment views
experiment.views#
get_associated_blocks(pk_list)
#
get_block(request, slug)
#
Get block data from active block with given :slug
DO NOT modify session data here, it will break participant_id system
(/participant and /block/
Source code in experiment/views.py
get_experiment(request, slug)
#
check which Phase
objects are related to the Experiment
with the given slug
retrieve the phase with the lowest order (= current_phase)
return the next block from the current_phase without a finished session
except if Phase.dashboard = True,
then all blocks of the current_phase will be returned as an array (also those with finished session)
Source code in experiment/views.py
validate_block_playlist(request, rules_id)
#
Validate the playlist of an experiment based on the used rules