def delete_Stationt(id): try: station = Station.query.get(id) Station.delete(station) except BaseException: abort(404) return jsonify({'Deleted Astronaut': id, 'success': True})
def create_neo_db(): # Create temporary station and vehicle tmp_station = Station(short='STATI', name='Station', latitude=10.0, longitude=10.0).save() tmp_vehicle = Vehicle(code='100').save() spatial_query = "CALL spatial.addPointLayer('spati')" neo_db.cypher_query(query=spatial_query) tmp_station.delete() tmp_vehicle.delete()