Experiment views
experiment.views
get_associated_blocks(pk_list)
get all the experiment objects registered in an Experiment field
Source code in experiment/views.py
134 135 136 |
|
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
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
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
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|
validate_block_playlist(request, rules_id)
Validate the playlist of an experiment based on the used rules
Source code in experiment/views.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|