35 Commits

Author SHA1 Message Date
1880f8abec clean imports (delete imports, which are not used) 2023-08-12 23:46:09 +03:00
2cfe8512f4 delete and poem endpoints fixed 2023-08-12 01:52:47 +03:00
bd863bc911 points added; rating still isn't fixed 2023-08-08 19:00:06 +03:00
832a2ce985 Auth works again; relationships between Trashbox and User added 2023-08-08 01:22:47 +03:00
5fcee1157e rating routes added 2023-08-06 23:59:33 +03:00
cc414e38bd Merge branch 'main' of https://github.com/dm1sh/porridger_tmp 2023-08-02 00:58:25 +03:00
680b4ad7a2 Merge branch 'main' of https://github.com/dm1sh/porridger_tmp 2023-08-02 00:52:32 +03:00
26e42d874e get current user(using email) completed 2023-08-02 00:39:46 +03:00
2028dd9419
Fixed get_current_user db argument setting 2023-08-01 12:15:23 +03:00
0145ed8f44 Returning schemas.User from get_current_user 2023-07-31 23:55:16 +03:00
29d46be492 Удалено условие booked by в api/announcements 2023-07-31 01:08:59 +03:00
aaf0d20c65 UserDatabase->User, ForeignKey added 2023-07-30 12:35:08 +03:00
86acf3e326 Odd fields in User model removed. Schemas updated 2023-07-29 23:46:33 +03:00
5012642f7a Poems added to db 2023-07-27 21:49:04 +03:00
b37443b862 SessionLocal ->Session 2023-07-27 20:17:37 +03:00
48aad4ece7 Merge branch 'main' of https://github.com/dm1sh/porridger_tmp 2023-07-27 20:13:13 +03:00
6bb7ab5ce9 Auth is working. Disabled field added (models) 2023-07-27 19:24:27 +03:00
dd719a20ec Auth. was fixed. Problem is in getting curr. user 2023-07-27 19:24:27 +03:00
d97ca1c43f Alembic installed and activated. Poems table added 2023-07-27 19:24:27 +03:00
b06306a20b Still no result 2023-07-27 19:24:27 +03:00
d2c7ce453e Prepare to use another auth code 2023-07-27 19:24:27 +03:00
8513e8610b Добавлена response_model=User в get_current_user 2023-07-27 19:24:27 +03:00
ee823ff0c4 добавили responce_model=User к get_current_user 2023-07-27 19:24:27 +03:00
959596311b добавлен параметр response_model к get_user 2023-07-27 19:24:27 +03:00
7c317805fb fastapi.Responce has been imported 2023-07-27 19:24:27 +03:00
91c99e0fd8 Imported modules corrected 2023-07-27 19:24:27 +03:00
30140f058f Добавлена response_model=User в get_current_user 2023-07-19 00:14:56 +03:00
d5ba710885 добавили responce_model=User к get_current_user 2023-07-19 00:11:57 +03:00
6127dd8ba4 добавлен параметр response_model к get_user 2023-07-19 00:10:59 +03:00
d66b9004e0 fastapi.Responce has been imported 2023-07-18 23:56:07 +03:00
b39d9ada27 Imported modules corrected 2023-07-18 23:39:04 +03:00
09ba6a3478 Разделил модели базы данных и модели pydantic. 2023-07-17 23:34:04 +03:00
808edad6b4 Необходимо решить проблему get_user 2023-07-17 03:41:20 +03:00
8bae63231b Добавить в остальные функции проверку токена 2023-07-16 16:10:37 +03:00
4b158261db
Renamed backend folder 2023-05-16 23:21:14 +03:00