fix for 282800

This commit is contained in:
Detanup01 2024-05-17 21:37:41 +02:00 committed by GitHub
parent fd522b36c9
commit ea1bb239c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,12 @@ def generate_stats_achievements(
try:
default_num = int(s['default'])
except ValueError:
default_num = int(float(s['default']))
try:
default_num = int(float(s['default']))
except ValueError:
# we set this to min if someone is failed to set to a fucking int value. and after this and still throwing error I gonna throw the dev out of the windows whoever misstyped that!!!
# fixes 282800 | STAT_OJ46_C12 (<---THIS ONE)
default_num = int(s['min'])
else:
default_num = float(s['default'])
output_stats.append(f"{s['name']}={s['type']}={default_num}\n")