瀏覽代碼

[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)
 )