Commit Graph

23 Commits

Author SHA1 Message Date
a788555028 Fix a pagination bug when requesting the first page 2019-05-08 19:47:00 +02:00
d079df4feb Add GeoJSON output capability 2019-05-08 19:37:52 +02:00
9ce1e4c6a4 Add a default value for source in Report model 2018-11-29 11:07:22 +01:00
c5b64cfc72 Rework opendata import script
* Homogeneize the handling of opendata files.
* Use a clear distinction between geometry (the position of the report)
and geo_shape (the shape of the report area).
* Keep track of OpenData sources, fix #51.
* Keep track of the area covered by a given report.
2018-11-01 18:04:48 +01:00
20dd75b152 Add a source field to keep track of the source of the reports 2018-11-01 15:43:34 +01:00
bbca4d88ea Handle value conversion in filtering API 2018-10-18 09:39:53 +02:00
4345c3f4e3 Drop the active reports API route and use API filtering abilities
instead

Fix for #49.
2018-10-18 09:31:52 +02:00
0f03700f71 Enhanced filtering abilities in the API
Introduce new operators and let user combine filters.
2018-10-18 09:01:47 +02:00
9beed09ed0 Improve documentation. Fix #45. 2018-10-17 15:51:06 +02:00
a7792f5dbb Rework upvotes
Upvotes now reset the `datetime` field of the report, making it appear
as if it was newly reported. They also extend the lifetime for accidents
and GCUM.

This introduces database migrations as well.

Closes https://framagit.org/phyks/cyclassist/issues/41.
2018-09-12 13:51:53 +02:00
f83f66a353 Store datetime as naive UTC datetimes (no TZ info) in db, to avoid issues with SQLite 2018-08-02 11:19:44 +02:00
343143e8e7 Ensure server always return proper ISO encoded dates with timezone 2018-08-02 11:14:38 +02:00
d2bae9e532 Add statistics about the instance under the About section. 2018-08-01 17:54:48 +02:00
c5183a570f Use a token to protect POST API queries 2018-07-18 15:30:30 +02:00
9d6ed7e74c Better handling of expiration of GCUM and accidents report types. 2018-07-10 15:55:45 +02:00
9d4842b44c Clicking on a report now shows more infos and let users dismiss it
You should update your database by running
```
ALTER TABLE report ADD COLUMN (upvotes INTEGER NOT NULL, downvotes INTEGER NOT NULL)
```

Fix issue #8.
2018-07-06 15:39:35 +02:00
01fa63f916 Fix an issue with MySQL dropping connection after some time 2018-06-27 22:11:30 +02:00
b097bc2d2a Customizable db path in server 2018-06-27 15:48:17 +02:00
6fad8b7fac Add a WSGI file 2018-06-26 15:55:52 +02:00
ad6cc13681 Add some doc 2018-06-26 15:36:45 +02:00
f30d000f92 Show the reports as soon as they are added in the db 2018-06-26 11:39:43 +02:00
d59d84af43 Continue server side code 2018-06-25 18:33:17 +02:00
2d27e72b33 Initial commit 2018-06-25 18:29:57 +02:00