Skip to content

Querying Simulations fails #22

Open
@Castronova

Description

@Castronova

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions