I have problems using dictionaries containing the /
character in the key.
For example this code on the client:
def button_1_click(self, **event_args):
anvil.server.call('test',
{'FLAT 1/4"': 1,
'FLAT 3/4"': 2,
'FLAT 1/8"': 3,
'FLAT 3/8"': 4})
and this code on the server:
@anvil.server.callable
def test(data):
print(data)
produce this output:
{'4"': 2, '8"': 4}
The text preceding the /
is removed and any key ending with the same text overwrites the previous keys. In the case above there is only one 4"
item instead of both FLAT 1/4"
and FLAT 3/4"
.