Browse Source

dimensioni marker sensate

boyska 4 years ago
parent
commit
5cf4a9d3cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rxmap/rxmapp/models.py

+ 2 - 1
rxmap/rxmapp/models.py

@@ -62,7 +62,8 @@ class RapportoRicezione(models.Model):
 
     @property
     def radius(self):
-        return int(self.stabilita) * 70
+        raggi = [5, 10, 30, 100, 500, 1000]
+        return raggi[self.stabilita]
 
     @property
     def explaination(self):