Commit Graph

11 Commits

Author SHA256 Message Date
Johannes Randerath
53ab731787 Cookies and tests
- Added cookie banner
- Improved tests and fixed models accordingly
2024-07-03 01:18:17 +02:00
Johannes Randerath
cf6fcda0ed Started adding tests to tests for the models' integrity with GTFS 2024-06-27 13:01:56 +02:00
Johannes Randerath
f314bfb396 Got rid of bridge and fixed GTFS compliance
- Ported the bridge that was using a custom GTFS class and Pandas
  Dataframes to a native Django solution for and interface between db
  and csv (see api/io.py)
- Fixed some issues regarding the compliance of the exported csv files
  with the GTFS reference. I.e. now allowing times 24:00:00 <= t >=
  24:59:59
2024-06-24 14:21:53 +02:00
Johannes Randerath
f5b329bc17 API: Retrieve data
Now able to retrieve model data for any number of models, identified by
their primary keys, represented as JSON, using GET /data?<primary_key>=<value>.
2024-06-19 22:12:20 +02:00
Johannes Randerath
26b08b72dd Added view to get models by pk 2024-06-17 14:26:23 +02:00
Johannes Randerath
a310152c4f Passing stops and routes to index 2024-06-11 17:20:25 +02:00
Johannes Randerath
c22049f499 Added documentation
- Using sphinx to documente the project
- Autodocumenting Python using numpy-style docstr and sphinx autodoc with napoleon
2024-06-03 20:29:28 +02:00
Johannes Randerath
af5a2c862d Backend changes and sql convenience
- Added sql files to create and drop db and to feed example data.
- Added bridge to import (and later export) data from a gtfs.GTFS object
  to the database.
- Updated models and migrations to implement the whole GTFS reference.
2024-06-02 20:58:39 +02:00
Johannes Randerath
9a4879a67d Changed ids to always increase as automatic primary keys 2024-06-01 01:28:32 +02:00
Johannes Randerath
0a196d6b15 Added models to represent GTFS 2024-06-01 00:20:55 +02:00
Johannes Randerath
a18927bad1 Setup Mariadb 2024-05-31 22:32:30 +02:00