소스 검색

[locations] Geo accuracy should be int

Colin Powell 1 년 전
부모
커밋
879942d070
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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):