Ver Fonte

[locations] settings needs to be int cast

Colin Powell há 1 ano atrás
pai
commit
74f672a2fd
1 ficheiros alterados com 2 adições e 2 exclusões
  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)
 )