[web2py] Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-22 Thread M Mihai
So I want to update the database while a scheduler task is running but the function won't update it. If I try to run the same function from a controller it will update the database. Here is the function: def Test(): row = db(db.posts.Posted==False).select().first()

[web2py] Re: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-23 Thread M Mihai
On Wednesday, March 23, 2016 at 1:24:32 AM UTC+2, Dave S wrote: > > > > On Tuesday, March 22, 2016 at 3:45:25 PM UTC-7, M Mihai wrote: >> >> So I want to update the database while a scheduler task is running but >> the function won't update it. If I try

[web2py] Re: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-23 Thread M Mihai
On Wednesday, March 23, 2016 at 5:44:34 PM UTC+2, Dave S wrote: > > > > On Wednesday, March 23, 2016 at 7:46:24 AM UTC-7, M Mihai wrote: >> >> >> >> On Wednesday, March 23, 2016 at 1:24:32 AM UTC+2, Dave S wrote: >>> >>> >>> &g