Commit Graph

31 Commits

Author SHA1 Message Date
Lucas Verney a7ee94653f Revert "Reduce number of requests to housing websites"
This reverts commit 977e354646.
2021-04-28 19:54:27 +02:00
Lucas Verney 977e354646 Reduce number of requests to housing websites
Keep track of the last seen date and start crawling again from there for
the next crawl, instead of crawling everything at each invocation.

Can be configured through configuration options.
2021-04-12 23:28:42 +02:00
Lucas Verney 9b6407db05 WebOOB -> Woob 2021-04-08 20:08:23 +02:00
Lucas Verney 3201c3ddd3 Fixup commit 2021-03-14 18:00:36 +01:00
Gautier P 9f328259a7 Add INSEE filtering 2021-02-08 17:08:52 +01:00
Gautier P a92db5e8ee Reformat with black (max-line-length=120) 2021-02-08 17:08:52 +01:00
Gautier P 42909bd46f reformat with black 2021-02-08 17:08:52 +01:00
Gautier P 5a3a82ca8d Add flatisfy_position 2021-02-08 17:08:52 +01:00
Julien Wajsberg e8c28a4a91 Add an is_expired column to the model
You should delete your database and let the software recreate it after
this commit. Alternatively, add the `is_expired` column to the flats
table.
2018-10-13 17:11:09 +02:00
Lucas Verney 0c9f7d3067 Avoid a crash when no photos are found for a flat 2018-03-04 18:40:57 +01:00
Lucas Verney 7bf08adbce Avoid computing multiple times the same photo hash, fix for #111 2018-01-18 15:43:39 +01:00
Lucas Verney d482d9b6fa Make CI fail if a test fails + a bit of linting 2018-01-18 14:48:28 +01:00
Lucas Verney 7196add731 Lint code 2017-12-30 14:45:58 +01:00
Lucas Verney 49ebfe9111 Add an opendata endpoint in API 2017-12-13 14:38:05 +01:00
Lucas Verney 0376cdf4e0 Fix a bug with Flat.from_dict 2017-12-06 19:03:25 +01:00
Lucas Verney 8a74a79ac2 Update doc link in README.md 2017-12-05 15:17:03 +01:00
Lucas Verney b285c270aa Cleaner API 2017-12-05 12:20:40 +01:00
Lucas Verney 9424f81959 Rework API code
Factor flat post-processing in API and fix for #83. Always return JSON
even if an exception occurred.
2017-12-04 22:01:46 +01:00
Lucas Verney c936228726 Add an ICS feed of visits
UI is minimalist and should be improved in the future. Fixes #40.
2017-11-10 16:29:38 +01:00
Lucas Verney b9e108d63d Make Flat notes searchable 2017-11-09 16:00:50 +01:00
Lucas Verney 1baebffb87 Do some linting 2017-10-29 21:04:09 +01:00
Lucas Verney d396d33506 Rewrite doc and frontend to match new constraints in config 2017-06-16 16:56:59 +02:00
Lucas Verney bdf8a6b8d2 Handle multiple constraints in the config
All the backend part has been rewritten to handle multiple constraints
in the config (== multiple queries).

Also did some linting.

Still to be done: frontend part and doc.
2017-06-16 16:22:02 +02:00
Lucas Verney 82a88590b6 Rewrite data files management, to make it more modular
This is to prepare for the integration of Tcl data, see #58.
2017-06-15 15:48:16 +02:00
Lucas Verney 0e3d1576b2
Use stars to note flats
Instead of a binary "followed" / "not followed" status, use 5 stars to
allow users to give a note to a flat between 0 (not followed) and 5. Any
note different from zero add a "followed" status.

Closes issue #36.
2017-05-03 22:14:51 +02:00
Lucas Verney 69588a9601
Add the possibility to leave notes on flats
* Add a database field to store `notes` (as a memo) about flats.
* Add matching UI elements to let users store their notes about flats.

This commit closes issue #34.
2017-05-03 19:18:07 +02:00
Lucas Verney 982ea995a7 Add a search feature and matching UI elements
Also do some minor UI improvements:
* Add an icon to identify followed flats in tables
* Fix wrong enforced plural for 'flats'
2017-05-03 15:55:08 +02:00
Lucas Verney 3df3162e2a Be careful when filtering / reimporting, do not overwrite user-defined status. Closes #31. 2017-05-03 15:55:07 +02:00
Lucas Verney 5f2f4d0ccf Better deduplication
* Improve deduplication on URLs (match sets).
* Keep track of duplicates and update their status on refiltering.
2017-05-03 15:55:07 +02:00
Lucas Verney a57d9ce8e3 Switch to a Vue-based web app
* Init Webpack / Babel / etc setup.
* Build the app using Vue, Vue-router, Vuex.
* i18n

Some backends changes were made to match the webapp development:
* Return the flat status as a single string ("new" rather than
"FlatStatus.new")

* Completely switch to calling Weboob API directly for fetching
* Use Canister for Bottle logging
* Handle merging of details dict better
* Add a WSGI script
* Keep track of duplicates
* Webserver had to be restarted to fetch external changes to the db
* Handle leboncoin module better

Also add contributions guidelines.

Closes issue #3
Closes issue #14.
2017-05-03 15:54:26 +02:00
Lucas Verney d7012e3834
Initial commit 2017-04-13 20:03:59 +02:00