Open-event-server: Event Dao doesn't return any results

Created on 26 Jun 2016  路  6Comments  路  Source: fossasia/open-event-server

846

Use case:
marshal(EventDAO.list(location_name=location), EVENT)

bug search

Most helpful comment

@aviaryan yes please :smile: make it a contains match

All 6 comments

@rafalkowalski what was the location name ?

The search seems to work only with the full location name. For example, if there is an event with location name as Brussels, Belgium, searching for location as Belgium doesn't give that result.

is there contain conditions? @niranjan94

I'm not sure. @aviaryan any idea ?

No. location_name simply compares with the location_name field in the model i.e. like Event.query.filter_by(location_name=location_name) . Should I make it like the contains match ?

@aviaryan yes please :smile: make it a contains match

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SaptakS picture SaptakS  路  3Comments

mariobehling picture mariobehling  路  3Comments

Masquerade0097 picture Masquerade0097  路  3Comments

CosmicCoder96 picture CosmicCoder96  路  4Comments

SaptakS picture SaptakS  路  3Comments