Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying Simulations fails #22

Open
Castronova opened this issue Jan 15, 2016 · 0 comments
Open

Querying Simulations fails #22

Castronova opened this issue Jan 15, 2016 · 0 comments
Labels

Comments

@Castronova
Copy link
Contributor

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)...:

getAllSimulations
getSimulationByName 
getSimulationByActionID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant