Commit Graph
11 Commits
Author SHA1 Message Date
Oliver StanleyandGitHub 652b7bff04 857: Implement backend Discord authentication (#943)
* Initial code for backend auth

* Remove outdated check

* Initial separation of AuthenticatedUser

* AuthenticatedUser -> Account

* Rework for Account

* Initial code for Discord OAuth

* Remove now redundant methods

* Remove incorrect response model, add requests dep for backend

* Create Settings fields for Discord values

* Cleanup get account from Discord function

* Cleanup

* Cleanup

* Generate alembic upgrade script

* Remove unused error codes

* Update alembic script to correct down revision

* Use aiohttp over requests

* Update alembic script to latest down revision
2023-02-02 19:33:21 +01:00
Keith Stevens 3197b6088b Using more pydantic features in the backend and fixing env issues on the website 2023-01-28 19:35:40 +09:00
Keith Stevens 62d00d5bd4 Adding a minimal backend API route that decrypts the web's JWE and returns the email 2023-01-28 16:56:34 +09:00
Keith Stevens ec5bdef719 Not sure this will work 2023-01-22 21:36:52 +09:00
Andreas KöpfandGitHub b5bb5bb7c0 Add leaderboard stats, periodic updates via fastapi-utils (#724)
* add leaderboard stats, periodic update via fastapi-utils

* count label tasks for assistant and prompter replies

* Daily stats update every 15 mins, simplify leaderboard endpoint

* add indices for some created_date columns

* make user stats update intervals configurable

* make sure intervals are positive
2023-01-15 12:04:19 +01:00
kiritowu af0313ad5d Add fastapi-limiter to requirements.txt 2023-01-03 00:28:05 +08:00
Alexander Mattick be424c96a2 infogain analytic solution 2022-12-25 11:45:29 +01:00
Alexander Mattick 38ca08446d ran pre-commit hook 2022-12-14 20:32:23 +01:00
Yannic Kilcher 6bc64459f5 local database setup 2022-12-13 16:19:29 +01:00
Yannic Kilcher d3d657e636 ran pre-commit and fixed issues 2022-12-13 12:38:59 +01:00
Andreas Köpf 0767b2064e first commit of backend app 2022-12-13 10:52:18 +01:00