Quellcode durchsuchen

[locations] Geo accuracy should be int

Colin Powell vor 1 Jahr
Ursprung
Commit
879942d070
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      vrobbler/apps/locations/models.py

+ 1 - 1
vrobbler/apps/locations/models.py

@@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
 BNULL = {"blank": True, "null": True}
 User = get_user_model()
 
-GEOLOC_ACCURACY = getattr(settings, "GEOLOC_ACCURACY", 4)
+GEOLOC_ACCURACY = int(getattr(settings, "GEOLOC_ACCURACY", 4))
 
 
 class GeoLocation(ScrobblableMixin):