In a function I need the id of the last record created in a previous session. I tried:
maxID=db(db.Node).select(db.Node.id.max()).first().id
... but that results in a key error on id.
In a view, this {{=maxID}}, is being rendered as:
<Row {'_extra': <Row {'MAX(Node.id)': 2035}>}>
How do I get maxID=2035
Kind regards,
Annet

