avrae icon indicating copy to clipboard operation
avrae copied to clipboard

AVR-1062 Server Setting, Custom Stat Roll, Number of Stats setting does not save changes

Open taine-bot opened this issue 7 months ago • 1 comments

What is the bug?: Server Setting, Custom Stat Roll, Number of Stats setting does not save changes. Severity: Medium (minor functional impact) Steps to reproduce:

  1. run !server_settings
  2. click Custom Stat Roll Settings
  3. click Set Number of Stats
  4. enter any allowed number besides 6
  5. click back
  6. click exit
  7. repeat steps 1 and 2, Number of stats will have reverted back to 6. Context: https://cdn.discordapp.com/attachments/269276431605956609/1377831102588125225/20250530-0208-05.6008434.mp4?ex=683a64b5&is=68391335&hm=19250e1378169145d09c084920a9eff140e2dde760d59f945878b4c4bdf56175&xxx
  • theminingalex#0

taine-bot avatar May 30 '25 02:05 taine-bot

note for devs/fixer

  File "/home/avrae/ui/servsettings.py", line 582, in select_stats
    if self.settings.randchar_num != len(self.settings.randchar_stat_names) and self.settings.randchar_straight:
TypeError: object of type 'NoneType' has no len()

1drturtle avatar May 30 '25 02:05 1drturtle