In light of my previous question working out, I have a followup.
I'd like to log some data whenever this question is run:
- timestamp of a run
- user id
- size n of a variable in the code
Now I can get the timestamp and the size easily enough - and I'm sure I can figure out a logging system (sqlite, log files, etc etc) but unsure how to access a user id from moodle?
*edit: I know this is accessible in the twig template - I was referring rather to the Python3 code