bleucitron / open-books

https://open-books.now.sh
MIT License
8 stars 7 forks source link

Enable Siren/Siret search #126

Closed bleucitron closed 2 years ago

bleucitron commented 2 years ago

The search function should be able to detect if its input is a number.

If it is the case, do not fetch data from geo API (which gets city info) and just display the number in the input with no suggestions (maybe later).

On enter, redirect to the budget page, with correct search params: sirens= if the input is a SIREN, siret= if the input is a SIRET.