Browse Source

Merge branch 'master' into 'master'

Various minor fixes

See merge request phyks/Flatisfy!40
Phyks 1 month ago
parent
commit
a82df4da50

+ 2
- 1
flatisfy/cmds.py View File

@@ -252,4 +252,5 @@ def serve(config):
252 252
         # standard logging
253 253
         server = web_app.QuietWSGIRefServer
254 254
 
255
-    app.run(host=config["host"], port=config["port"], server=server)
255
+    print("Launching web viewer running on http://%s:%s" % (config["host"], config["port"]))
256
+    app.run(host=config["host"], port=config["port"], server=server)

+ 6
- 1
flatisfy/config.py View File

@@ -38,7 +38,12 @@ DEFAULT_CONFIG = {
38 38
             "bedrooms": (None, None),  # (min, max)
39 39
             "minimum_nb_photos": None,  # min number of photos
40 40
             "description_should_contain": [],  # list of terms
41
-            "description_should_not_contain": [],  # list of terms
41
+            "description_should_not_contain": [  # list of terms
42
+                "vendu",
43
+                "Vendu",
44
+                "VENDU",
45
+                "recherche"
46
+            ],
42 47
             "time_to": {}  # Dict mapping names to {"gps": [lat, lng],
43 48
                            #                        "time": (min, max),
44 49
                            #                        "mode": Valid mode }

+ 1
- 1
flatisfy/web/js_src/i18n/fr/index.js View File

@@ -6,7 +6,7 @@ export default {
6 6
         'More_about': 'Plus sur',
7 7
         'Remove': 'Enlever',
8 8
         'Restore': 'Remettre',
9
-        'Original_post': 'Annonce originale | Annonces originales',
9
+        'Original_post': 'Annonce originale | Annonces originales',
10 10
         'Original_post_for': 'Annonce originale pour',
11 11
         'Follow': 'Suivre',
12 12
         'Unfollow': 'Arrêter de suivre',

+ 8
- 1
flatisfy/web/js_src/views/home.vue View File

@@ -17,7 +17,8 @@
17 17
 
18 18
         <template v-if="Object.keys(postalCodesFlatsBuckets).length > 0">
19 19
             <template v-for="(postal_code_data, postal_code) in postalCodesFlatsBuckets">
20
-                <h3>{{ postal_code_data.name || $t('common.Unknown') }}
20
+                <h3>
21
+                    {{ postal_code_data.name || $t('common.Unknown') }}
21 22
                     <span v-if="postal_code !== 'undefined'">
22 23
                         ({{ postal_code }})
23 24
                     </span>
@@ -100,6 +101,12 @@ h2 {
100 101
     justify-content: space-between;
101 102
 }
102 103
 
104
+table {
105
+    margin-left: 0;
106
+    margin-right: 0;
107
+    width: 100%;
108
+}
109
+
103 110
 .show-expired-flats-label {
104 111
     font-weight: initial;
105 112
     font-size: initial;