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
Querying for simulations does not work when using any of the readService functions. Exceptions are silenced when calling these functions and None is returned. I suggest that the exception handling at least print the exception message (possibly even raise Exception(e)). By printing the exception message we can see that all of these functions are looking for a table called Simulation:
global name 'Simulation' is not defined
However, this table does not exist, and these functions should instead be looking for a table called Simulations as defined in models.py
In the following functions, self._session.query(Simulation)... needs to be replaced with self._session.query(Simulations)...:
Querying for simulations does not work when using any of the
readService
functions. Exceptions are silenced when calling these functions andNone
is returned. I suggest that the exception handling at least print the exception message (possibly evenraise Exception(e)
). By printing the exception message we can see that all of these functions are looking for a table calledSimulation
:However, this table does not exist, and these functions should instead be looking for a table called
Simulations
as defined inmodels.py
In the following functions,
self._session.query(Simulation)...
needs to be replaced withself._session.query(Simulations)...
:The text was updated successfully, but these errors were encountered: