Re: [sqlalchemy] can't update images

2019-03-27 Thread Scheck David
it's ok, it's saving but what is strange is that my query doesn't find this records: this is my sql : sql = 'SELECT ss.id, ss.name, ss.image_metadata FROM (SELECT image.id, image.image_metadata, image.name, json_array_elements(image.uri_reference)::text as uri_ref FROM image) ss WHERE

[sqlalchemy] can't update images

2019-03-27 Thread Scheck David
Hi everyone, I try to update an attribute but it appears that it doesn't save. Would you know why ? it's very strange because the print is good. but when I query again this uri_reference it finds Nonetype. here is the command : ``` @contextlib.contextmanager def db_session(settings):