Parcourir la source

Merge branch 'master' of vross/wifi-with-me into master

jocelyn il y a 7 ans
Parent
commit
fef004f108
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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))
         # works with (0, 360))
         if len(orientations) == 8:
         if len(orientations) == 8:
             return [[0, 360]]
             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
         angles.sort(key=lambda i: i[0])  # sort by x
         return merge_intervals(angles)
         return merge_intervals(angles)