izenn/padbox

JSON IDs not permuted to in-game IDs.

Closed this issue · 3 comments

If a user ID in the JSON is 123456789, it should be displayed as 159638247 (which is the in-game display).

Code:

def dispID(ID):
    """Permutes internal PAD ID to the displayed form.
    """
    ID = str(ID).zfill(9)
    return ''.join(ID[x-1] for x in [1,5,9,6,3,8,2,4,7])
izenn commented

do you have an example on where this is happening? (or where in the json the internal id is?)

izenn commented

unable to replicate