Closed src4026 closed 1 year ago
Why is it showing pname
as undefined variable, although the code for it seems the same for me in the actual file and the one in this PR?
Why is it showing
pname
as undefined variable, although the code for it seems the same for me in the actual file and the one in this PR?
I think it is because pname
isn't passed into the function get_rank
directly, maybe try putting it as an argument
Why is it showing
pname
as undefined variable, although the code for it seems the same for me in the actual file and the one in this PR?I think it is because
pname
isn't passed into the functionget_rank
directly, maybe try putting it as an argument
Thanks! I'll mention it here too I guess :)
@src4026 Try this approach instead:
params
, check if mode name is all
return_str
, iterate over all modes and append their returning str, if any, to the return_str, you havereturn_str
That is, you call the rank command function from itself. Please try and if you got lost, let me know :)
Sure, thanks. I will try this approach and let you know :D 👍
Ready for review.
For reference: https://discord.com/channels/447819017391046687/1008040841102766153/1116006701636780184 Is this how I should do it, or is another way better?