Explorar el Código

[locations] settings needs to be int cast

Colin Powell hace 1 año
padre
commit
74f672a2fd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)
 )