소스 검색

[locations] settings needs to be int cast

Colin Powell 1 년 전
부모
커밋
74f672a2fd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      vrobbler/apps/scrobbles/models.py

+ 2 - 2
vrobbler/apps/scrobbles/models.py

@@ -46,8 +46,8 @@ logger = logging.getLogger(__name__)
 User = get_user_model()
 BNULL = {"blank": True, "null": True}
 
-POINTS_FOR_MOVEMENT_HISTORY = getattr(
-    settings, "POINTS_FOR_MOVEMENT_HISTORY", 3
+POINTS_FOR_MOVEMENT_HISTORY = int(
+    getattr(settings, "POINTS_FOR_MOVEMENT_HISTORY", 3)
 )