Fix rounding of attributes in Habitica integration (#131772)

This commit is contained in:
Manu 2024-11-28 01:35:23 +01:00 committed by GitHub
parent f61a5b78cc
commit bf4d6d2029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ def get_attribute_points(
)
return {
"level": min(round(user["stats"]["lvl"] / 2), 50),
"level": min(floor(user["stats"]["lvl"] / 2), 50),
"equipment": equipment,
"class": class_bonus,
"allocated": user["stats"][attribute],