Fix a typo in RescueBoard.find that caused it to return
FindRescueResult(rescue=(the_rescue_were_looking_for, ), created=False) instead of
FindRescueResult(rescue=the_rescue_were_looking_for, created=False)
when presented with a database id.
This causes the parameters rRfF to not work with ids (giving you a tuple instead of a Rescue object), producing the following ugly error:
<MHajoha> !clear @51d141a7-da74-4811-83a7-ba65be379ef9
<&DrillSqueak[BOT]> AttributeError: 'tuple' object has no attribute 'platform' (file "sopel-modules/rat-board.py", line 851, in func_clear)
Fixing this should allow commands with those parameters to correctly accept ids.
Fix a typo in
RescueBoard.find
that caused it to returnFindRescueResult(rescue=(the_rescue_were_looking_for, ), created=False)
instead ofFindRescueResult(rescue=the_rescue_were_looking_for, created=False)
when presented with a database id. This causes the parametersrRfF
to not work with ids (giving you a tuple instead of a Rescue object), producing the following ugly error:Fixing this should allow commands with those parameters to correctly accept ids.