Reverted change to only return not deleted ships
This commit is contained in:
parent
0e8faf499d
commit
cdf6e7d99b
@ -17,7 +17,7 @@ def GetShips(token):
|
||||
commands = pydapper.using(pooledConnection)
|
||||
# query = SQLQuery.get_ships()
|
||||
# data = commands.query(query, model=model.Ship)
|
||||
data = commands.query("SELECT id, name, imo, callsign, participant_id, length, width, is_tug, bollard_pull, eni, created, modified, deleted FROM ship WHERE deleted=0 ORDER BY name", model=model.Ship)
|
||||
data = commands.query("SELECT id, name, imo, callsign, participant_id, length, width, is_tug, bollard_pull, eni, created, modified, deleted FROM ship ORDER BY name", model=model.Ship)
|
||||
|
||||
return json.dumps(data, default=model.obj_dict), 200, {'Content-Type': 'application/json; charset=utf-8'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user