Commit Graph

7 Commits

Author SHA1 Message Date
Tom Hacohen
2e21fe4994 Django db cleanup: explicitly add it to dependencies.
We can't really add it manually, because some of the deps are auto included as
parameters. These were not being decorated which in turn meeant issues.
2020-12-31 10:03:16 +02:00
Tom Hacohen
6738c2cf20 Remove unused variable. 2020-12-30 13:55:05 +02:00
Tom Hacohen
64be7f10bd Remove all of the needless async decorators.
The code uses the django ORM which is sync, and fastapi handles sync paths
just fine. So having all of this extra code for handling async was unnecessary.
2020-12-30 10:17:01 +02:00
Tom Hacohen
a7fdb4a108 More typing fixes. 2020-12-29 21:10:03 +02:00
Tom Hacohen
709bc6c1fc Improve typing information. 2020-12-29 18:17:28 +02:00
Tom Hacohen
332f7e2332 Fix Python 3.7 compatibility
Both cached_property and Literal were introduced in Python 3.8 so they
can't be used.
2020-12-29 17:55:55 +02:00
Tom Hacohen
dbdff06e68 Move all the routers under their own dir. 2020-12-29 15:42:41 +02:00