You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the error Fault(Server: "'Note' object has no attribute 'value'") when trying using get_projects. This seems to be an issue with to_named_tuple in the get_projects call using HydraServer, but I was not able to figure out exactly what the issue was. As far as I can tell my Note is formed correctly (actually, I only have one project note in my database).
In the end, I simply bypassed the to_named_tuple, as it doesn't provide anything of value to me, but we should probably figure this out eventually.
The text was updated successfully, but these errors were encountered:
The issue here seems like a copy-paste error. The DB column is called 'value' whereas the sqlalchemy object uses note_text. The to_named_tuple function assumes column names and sqlalchemy attributes to be consistent.
Long story short, the solution to this is to change the DB column name to note_text.
I have updated the model.py in HydraServer.db to use note_text as the column name.I would have used just 'text' but it seem that that's a reserved word.
MySQL:
alter table tNote change value note_text blob;
Sqlite:
alter table tNote rename to tNoteOriginal;
I am getting the error
Fault(Server: "'Note' object has no attribute 'value'")
when trying using get_projects. This seems to be an issue withto_named_tuple
in the get_projects call using HydraServer, but I was not able to figure out exactly what the issue was. As far as I can tell my Note is formed correctly (actually, I only have one project note in my database).In the end, I simply bypassed the to_named_tuple, as it doesn't provide anything of value to me, but we should probably figure this out eventually.
The text was updated successfully, but these errors were encountered: