049a5f6f62
Remove periods from one-sentence comments
2026-12-03 10:04:43 +01:00
9d98021b11
Request the db_session fixture
...
The test queries the database but relied on the
global `db.session` that the previous test had left behind.
2026-12-02 00:19:51 +01:00
2eb6b5769f
Query with select() in Pixel
...
`Session.query()` is the legacy API in SQLAlchemy 2.x.
The addresses with restaurants are now selected with a subquery in one statement.
The `_restaurants_mock` fixture mocks the new call chain.
2026-12-01 23:45:35 +01:00
c1f04c65aa
Count rows with select() in the tests
...
`Session.query()` is the legacy API in SQLAlchemy 2.x.
2026-12-01 23:17:57 +01:00
c56fe649b7
Enable RUF in ruff
2026-11-30 23:17:41 +01:00
e30b3efbe8
Use the sa alias for sqlalchemy everywhere
...
`sa` is the common alias, also in SQLAlchemy's own documentation
2026-11-30 14:18:05 +01:00
ea8f1a13e3
Use double quotes
2026-11-28 03:26:13 +01:00
137b3b1e03
Remove the config of flake8-expression-complexity
2026-11-28 03:26:10 +01:00
9fcb3c8c14
Remove all "WPS" codes
2026-11-28 03:25:20 +01:00
dbdce83067
Upgrade black
2026-11-25 10:30:47 +01:00
4855209392
Rename the urban_meal_delivery package into velofy
2026-11-23 18:06:53 +01:00
fd404e2b89
Adjust Pixel.__repr__() a tiny bit
2021-01-31 19:34:05 +01:00
63e8e94145
Add Pixel.restaurants property
...
- the property loads all `Restaurant`s from the database that
are within the `Pixel`
2021-01-31 19:29:18 +01:00
605ade4078
Add Pixel.northeast/southwest properties
...
- the properties are needed for the drawing functionalitites
2021-01-26 17:05:36 +01:00
9196c88ed4
Remove pylint from the project
2021-01-09 17:47:45 +01:00
f996376b13
Add ORM models for the pixel grids
...
- add Grid, Pixel, and AddressPixelAssociation ORM models
- each Grid belongs to a City an is characterized by the side_length
of all the square Pixels contained in it
- Pixels aggregate Addresses => many-to-many relationship (that is
modeled with SQLAlchemy's Association Pattern to implement a couple
of constraints)
2021-01-03 19:33:36 +01:00