What I’m trying to do:
I’m trying to find out which apps are using all my storage allowance. I have 400+ apps and I’m trying to not to have to open each one individually to find out.
What I’ve tried and what’s not working:
I’ve opened a few manually, but if I keep doing that it will take me about 3 nervous breakdowns to get through them all. I can’t think of anything else to try.
oops - I shall self flagellate for not searching before posting. Sometimes I just blurt stuff out - it’s the curse of working alone from home - no one to casually exclaim to, who can then tell me I’ve already asked that question …
@david.wylie , I just did a deep dive into the server code to find the correct server call, you could just do this once, or remix the code to make a scheduled task that dumps the info to the logs, or emails you or something?
At least you’d only need to do the copy pasta dance 400 times one time.
Or you could do a massive find and replace using git maybe?
Anyway here is what I got:
def get_app_tables_lengths():
return ({k:len(v.search()) for k,v in anvil.server.call("anvil.private.tables.get_app_tables").items()})
Printing it in my app got me this:
(it calls one of @meredydd 's famous clojure methods to the app tables)