Update record not working

54 views
Skip to first unread message

Eduardo Cruz

unread,
Aug 12, 2013, 1:28:48 PM8/12/13
to web...@googlegroups.com
I'm trying to update a record:
for station in stations:
        voice = "something"
        station.update_record(voice=voice)

but for some reason it's not in the db when I check with MySQL Workbench,
any suggestions?  

Anthony

unread,
Aug 12, 2013, 2:05:22 PM8/12/13
to web...@googlegroups.com
Is this part of an HTTP request to an app, or in an external script (outside of an HTTP request, you need to call db.commit() to commit transactions)?

Anthony

Eduardo Cruz

unread,
Aug 12, 2013, 2:10:19 PM8/12/13
to web...@googlegroups.com
is part of an http request.


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/FF3D88lQlkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Eduardo Cruz - 829 775 4605 

Anthony

unread,
Aug 12, 2013, 2:44:22 PM8/12/13
to web...@googlegroups.com
Should work. I guess we need to see some more code. Also, make sure you're checking the right records in the right database.

Eduardo Cruz

unread,
Aug 12, 2013, 2:47:39 PM8/12/13
to web...@googlegroups.com
it's working now but the code it's exactly the same, woah.
Reply all
Reply to author
Forward
0 new messages