Skip to content

Commit

Permalink
Add value limits to GPS coordinates for Configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Oct 14, 2024
1 parent d9ef239 commit b4a77d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publicdb/histograms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def get_absolute_url(self):
class Configuration(models.Model):
summary = models.ForeignKey(Summary, models.CASCADE, related_name='configurations')
timestamp = models.DateTimeField()
gps_latitude = models.FloatField()
gps_longitude = models.FloatField()
gps_latitude = models.FloatField(min_value=-90, max_value=90)
gps_longitude = models.FloatField(min_value=-360, max_value=360)
gps_altitude = models.FloatField()
mas_version = models.CharField(max_length=40)
slv_version = models.CharField(max_length=40)
Expand Down

0 comments on commit b4a77d5

Please sign in to comment.