I haven't done anything in the scheduler yet. It's on my to do list though.
I will come back here if I have any good suggestions.
On Tue, 23 Jun 2020, 10:22 pm Pierre, wrote:
> I advance like you by trying tons of things :)
> I did the most simple thing with the task just putting a
I advance like you by trying tons of things :)
I did the most simple thing with the task just putting a =
datetime.datetime.now() and it gives the exact same error.
Tasks doesn't like datetime period :)
Not yet figured out how to jsonify the task yet based on your suggest
Yeah, i dont really understand how web2py sends locals() etc back to the
view and how that differs from JSON data. I just keep trying random things
until it works :)
On Tue, 23 Jun 2020 at 12:15, Pierre wrote:
> thanks AG I will look into your suggestion.
> Fiddling with the error,
thanks AG I will look into your suggestion.
Fiddling with the error, found out that it's when reading back from sqlite
that the error arise. It's like something from web2py doesn't like the
format of my date in the field of the table.
But at this time, i do not know how to tell "web
Hi
I use this code to solve this problem:
result = json.dumps(result, indent=4, sort_keys=True, default=str)
Don't know what it does but it solves my problem.
I found it here:
https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable
On Wed, 17 Jun
Gooday,
In the controler the function works correctly. But as a task, it gives an
error about Json not beeing able to deal with datetime.
any suggestion would be appreciated :)
here is the error : TypeError: datetime.datetime(2020, 6, 16, 5, 17, 49)
is not JSON serializable
here is the code:
6 matches
Mail list logo