Skip to content

Commit 5811577

Browse files
authored
Merge pull request #249 from stanfordnmbl/mono_dequeue
fix n_cameras
2 parents c045715 + 446206c commit 5811577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mcserver/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_n_calibrated_cameras(self, request, pk):
233233

234234
# Nothing in calibration - assume mono
235235
# In future, we want to set a metadata parameter for isMono - this is a hack to allow us to collect data
236-
if 'sessionWithCalibration' not in session.meta and session.trial_set.filter(name="calibration").count() == 0:
236+
if 'sessionWithCalibration' not in (session.meta or {}) and session.trial_set.filter(name="calibration").count() == 0:
237237
return Response({
238238
'error_message': error_message,
239239
'data': 1

0 commit comments

Comments
 (0)