Browse Source

Vross fix orientations

root 7 years ago
parent
commit
c12772a514
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wifiwithme/apps/contribmap/models.py

+ 1 - 1
wifiwithme/apps/contribmap/models.py

@@ -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)