I have a table with follwing schema:
db.define_table('active_connections',
db.Field('user','string'),
db.Field('last_seen','datetime',default=datetime.now()),
)
I am inserting entries to this table from a web2py external python script
run with the following command:
python web2py.py -S chat -M -R applications/chat/private/chat_connections.py
But instead of inserting current time in table entries, it inserts the same
time in all entries, the time when this script was run.
Why does this happen?
python web2py.py -S chat -M -R applications/chat/private/chat_connections.py
python web2py.py -S chat -M -R applications/chat/private/chat_connections.py
python web2py.py -S chat -M -R applications/chat/private/
python web2py.py -S chat -M -R applications/chat/private/
--