|
@@ -118,7 +118,7 @@ class Contrib(models.Model):
|
|
|
# works with (0, 360))
|
|
|
if len(orientations) == 8:
|
|
|
return [[0, 360]]
|
|
|
- angles = [ANGLES[orientation] for orientation in self.orientations]
|
|
|
+ angles = [ANGLES[orientation] for orientation in orientations]
|
|
|
angles.sort(key=lambda i: i[0]) # sort by x
|
|
|
return merge_intervals(angles)
|
|
|
|