What I’m trying to do:
print a dict for test purposes in server code
Error seems to be related to accelerated tables, as didn’t do this when not enabled.
ValueError: dictionary update sequence element #0 has length 13; 2 is required
at AccountsServerModule, line 25called from /home/anvil/.downlink-sources/downlink-2023-07-15-08-18-50/anvil/_server.py:1359called from Accounts, line 17called from Frame, line 24called from StartupModule, line 12called from StartupModule, line 14
Code Sample:
@anvil.server.callable(require_user=True)
def get_account_org():
org = anvil.server.session['current_org']
account = app_tables.org_accounts.search(account_org = org)
print(dict(account))
return account
Line 25 is my print line.
any ideas?