Closed bernhardreiter closed 7 years ago
https://www.postgresql.org/docs/9.5/static/functions-matching.html (and 9.3) has:
a percent sign (%) matches any sequence of zero or more characters
thus https://github.com/Intevation/intelmq-fody-backend/blob/master/contactdb_api/contactdb_api/serve.py#L854 and https://github.com/Intevation/intelmq-fody-backend/blob/master/contactdb_api/contactdb_api/serve.py#L877 can be simplified.
https://www.postgresql.org/docs/9.5/static/functions-matching.html (and 9.3) has:
thus https://github.com/Intevation/intelmq-fody-backend/blob/master/contactdb_api/contactdb_api/serve.py#L854 and https://github.com/Intevation/intelmq-fody-backend/blob/master/contactdb_api/contactdb_api/serve.py#L877 can be simplified.