Commit Graph

153 Commits

Author SHA1 Message Date
8b99fff79d Add a code of conduct 2017-10-30 11:43:08 -04:00
35e7279c97 Add a Gitlab-CI file 2017-10-29 21:28:11 +01:00
1baebffb87 Do some linting 2017-10-29 21:04:09 +01:00
40e62baadf Add a config option to filter on terms in the description. Fix #77. 2017-10-29 20:16:33 +01:00
f81deb9f13 Rename minimum_photos config option to minimum_nb_photos 2017-10-29 20:15:19 +01:00
5bce6369ec Merge branch 'Hatrix42-master' 2017-10-29 03:05:43 +01:00
6b82af6b85 Review of Hatrix42 PR 2017-10-29 03:05:35 +01:00
9c55904f59 Merge branch 'master' of https://github.com/Hatrix42/Flatisfy into Hatrix42-master 2017-10-29 02:58:02 +01:00
1791142218 Check that area, rooms etc are lists in config 2017-10-29 02:39:15 +02:00
bea2c4ac17 Add weboob and weboob-modules in requirements.txt, fix #79. 2017-10-24 17:17:20 -04:00
1d6233e5ca Completely fix https://github.com/Phyks/Flatisfy/issues/10 2017-10-24 16:56:23 -04:00
7fd44b7e8f No longer make queries with more than three cities
Some postal codes correspond to multiple cities, then sometimes we were
spawning queries with more than three cities. This should no longer be
the case. This fixes https://github.com/Phyks/Flatisfy/issues/10.
2017-10-24 15:50:19 -04:00
Maël Le Garrec$
e7c81d31ac Add config option for minimum number of pictures 2017-10-24 17:21:48 +02:00
c96b2a3f4c Fix for https://github.com/Phyks/Flatisfy/issues/8 2017-10-19 15:34:02 -04:00
f1a5535bca Fix an error introduced in 88a923c87e 2017-10-19 15:30:03 -04:00
4633dd5179 Add a note about running time, see #72 2017-09-27 12:23:19 -04:00
fa20d0fcbc Fix #73 2017-09-27 00:16:36 +02:00
9b087729d3 Fix flatisfy.tools.batch with Python3 2017-09-26 01:04:09 +02:00
15eb5a19f6 Clarify doc about modules_path config option, see #71 2017-09-25 10:41:49 -04:00
7e35b71c28 Fix an issue with functools, see https://github.com/Phyks/Flatisfy/issues/4 2017-09-24 23:10:07 +02:00
88a923c87e Fix for https://github.com/Phyks/Flatisfy/issues/5 2017-09-24 22:51:12 +02:00
71729842ad Fix issue #68 2017-09-24 19:22:40 +02:00
Gautier Pelloux-Prayer
9405742445 Add weboob dependency in requirements.txt 2017-09-24 18:55:00 +02:00
Gautier Pelloux-Prayer
28d4b1e36b Add missing brackets for method invokation 2017-09-24 18:54:46 +02:00
01e9f7ec0a Merge branch 'cost-per-sq-meter' into 'master'
Display cost per square meter

See merge request !8
2017-07-11 15:08:41 +02:00
215fe14d01 Better email notifications
Rework a bit on top of @bnjbvr's MR to add basic email notifications
support.

* Cleaned the code a bit.
* Add a `Date` and a `Message-ID` header to improve the spam score.

Thanks a lot @bnjbvr's for the MR!
2017-07-06 15:06:13 +02:00
Benjamin Bouvier
23bbee8271 Adds basic email notifications when new flats have been found (fixes #47). 2017-07-06 15:06:13 +02:00
4c07fc8ba1 Merge branch 'better-dedup' into 'master'
Optimize photo comparisons

Closes #41 and #59

See merge request !9
2017-06-29 12:04:44 +02:00
be43206d4b Merge branch 'fix-slider' into 'master'
Fix image slider perspective

See merge request !3
2017-06-29 12:00:51 +02:00
Benjamin Bouvier
6a0681fc99 Optimize photo comparisons; fixes #41, fixes #59 2017-06-28 22:37:13 +02:00
Benjamin Bouvier
26e2cdefbe Display cost per square meter; 2017-06-28 22:03:20 +02:00
210192d09c Rework a bit on top of bnjbvr's fix for #49.
* Remove the text-decoration due to the use of links
* Make the link element occupy the whole table cell, without padding
* Use `router-link` instead of `a` tag
2017-06-26 16:26:35 +02:00
Benjamin Bouvier
aac6b63e0a Use simple anchors for flat details; 2017-06-26 15:52:51 +02:00
6ed484bb8b Merge branch 'foncia' into 'master'
Add support for Foncia backend from Weboob

See merge request !5
2017-06-26 13:33:15 +02:00
a9ac5484e0 Rework Docker image and add some doc.
Thanks @bnjbvr for the contribution!

This closes #15.
2017-06-21 15:10:56 +02:00
Benjamin Bouvier
4c558ef182 Basic docker image; 2017-06-21 12:11:29 +02:00
5c171a8356 Do not constrain too much the minimum zoom level of the flats map. 2017-06-20 16:32:27 +02:00
78b9ebf04e Better handling of phone links
Some Weboob backends were returning multiple phone numbers
(comma-separated) or phone numbers in different formats (with or without
spaces, with or without separating dots, etc).

This commit harmonizes all of this so that all phone links will be
rendered correctly and be usable to call in a single click.

Related, https://git.weboob.org/weboob/devel/merge_requests/42.
2017-06-20 14:20:54 +02:00
f1df23dc29 Linting 2017-06-20 13:37:54 +02:00
054c5679bb Handle exceptions raised when fetching details
Weboob does handle the raised exceptions when fetching housing posts
through the `WebNip` class. However, when fetching details, we directly
call the Weboob backend method and no exceptions handling is done.

When importing data with a `crontask`, websites may be offline for some
time, especially at night, then leading to a failure in import process.

Let's just handle such exceptions so that an offline website does not
break the whole import process. Details from the temporary offline
websites which could not be fetched will be fetched at next run.

This closes #60.
2017-06-20 13:37:54 +02:00
8e9cb2c1c7 Add a note about IRC channel 2017-06-20 11:04:05 +02:00
6e12490fbd Add some doc about CLI option and better informative message 2017-06-19 17:20:53 +02:00
082d177f19 More informative error message when matching accidentally a wrong postal code. See #64 for more context. 2017-06-19 17:15:42 +02:00
25f2e71264 Partial fix for #62 (documentation) 2017-06-19 16:26:12 +02:00
edb7b822d2 Multiple constraints in config and Tcl data
**Note**: This new feature requires a modification of the SQLite database used by Flatisfy. If you don't care about your current database, you can just remove it and do a reimport. Otherwise, you should do the following modifications manually:

* Add a [flatisfy_constraint](ed7e9dfc1a/flatisfy/models/flat.py (L89)) VARCHAR field in the flats table.
* Create [this table](ed7e9dfc1a/flatisfy/models/public_transport.py (L24-32)) for public transport data and [this one](ed7e9dfc1a/flatisfy/models/postal_code.py (L24-34)) for postal codes data.

Closes #58

See merge request !10
2017-06-19 16:12:17 +02:00
ed7e9dfc1a Add a CLI argument to import only a given constraint. Drop the necessary constraint. 2017-06-19 16:08:06 +02:00
b7f9427d53 Fix GPS position import of Tcl stations
Tcl stations GPS coordinates are given as `lng, lat` and not `lat, lng`
hence it was not working because the found stations were too far from
the housing post location, as reported by @bnjbvr.

This commit should fix this.
2017-06-19 14:25:02 +02:00
c4f6a80b0c Fix a StopIteration error in web API 2017-06-19 12:01:55 +02:00
b187a106e4 Avoid loading multiple times the same data
There was a bug in `data.py` which made it load the same data as many
times as the number of postal codes in constraints. This is now fixed.
2017-06-19 12:01:10 +02:00
d396d33506 Rewrite doc and frontend to match new constraints in config 2017-06-16 16:56:59 +02:00