Commit graph

172 commits

Author SHA1 Message Date
Yarne Coppens
a7f9b63556 When getting base board game, connection will check if board game is already in db and return it, if not it will add it. 2024-08-08 17:56:22 +02:00
Yarne Coppens
dfec34acc7 Created ability to add board games to db 2024-08-08 17:13:29 +02:00
Yarne Coppens
1ad9985377 Added test for correct weight conversion 2024-08-08 17:00:34 +02:00
Yarne Coppens
42b13b8413 Fixed unpacking bug 2024-08-08 17:00:22 +02:00
Yarne Coppens
f47c7cfd16 Bgg connection owned info now unpacks board game extra info 2024-08-08 16:52:48 +02:00
Yarne Coppens
962a842b44 Added ability to fully remove database 2024-08-08 16:50:52 +02:00
Yarne Coppens
f96494cf07 Added weight to board game class 2024-08-08 16:50:42 +02:00
Yarne Coppens
d6b0fee842 Added CORS 2024-08-08 16:35:06 +02:00
Yarne Coppens
aaf0319151 Created boardgame DB classes for table creation 2024-08-03 15:42:19 +02:00
Yarne Coppens
b7d3f2d0d2 Created definitions for sqlite database file 2024-08-03 14:19:18 +02:00
Yarne Coppens
5ee3f89647 Created boardgame class for DB 2024-08-03 14:18:54 +02:00
Yarne Coppens
ec30a9c364 Started work on db connection. data_connection will control where data will be returned from 2024-08-03 10:44:52 +02:00
Yarne Coppens
82694d84ed Wrote wishlist test 2024-08-03 10:31:16 +02:00
Yarne Coppens
fd6e6827f2 Made 2 definitions ints instead of floats 2024-08-02 15:09:20 +02:00
Yarne Coppens
98cef3603c Added the abililty to retrieve all plays 2024-08-02 12:48:35 +02:00
Yarne Coppens
592c416820 Added more constant definitions 2024-08-02 12:06:53 +02:00
Yarne Coppens
56e2325740 Fixed PlayPlayer wrong type assignment 2024-08-02 11:51:25 +02:00
Yarne Coppens
b820f3b78c Created base play class 2024-08-02 11:43:30 +02:00
Yarne Coppens
aad61804e6 Started work on play class 2024-08-02 11:32:56 +02:00
Yarne Coppens
8b829c4f7c Put secret file path in definitions 2024-08-02 11:22:08 +02:00
Yarne Coppens
86c3f54d03 Created wishlist test 2024-08-02 10:54:41 +02:00
Yarne Coppens
f963b8ae07 Renamed collection endpoint to owned to avoid confusion 2024-08-02 10:54:29 +02:00
Yarne Coppens
1036205acc Fixed wishlist endpoint. Application no longer assumes wishlist board games are owned 2024-08-02 10:50:18 +02:00
Yarne Coppens
5b87e45523 Created a wishlist expansion boardgame class 2024-08-02 10:37:47 +02:00
Yarne Coppens
7927f2ced1 bgg_connection will now wait on BGG if it is processing 2024-08-02 10:33:09 +02:00
Yarne Coppens
8b8a218bc5 Made more structural changes. Created a config with definitions to get the ROOT PATH of the project 2024-08-02 10:25:48 +02:00
Yarne Coppens
00257a3251 Reorganized modules. Created pytest config to make testing work 2024-08-02 09:52:06 +02:00
Yarne Coppens
724a40c0a6 Test now checks properly for collection board game 2024-08-01 14:44:24 +02:00
Yarne Coppens
d5d370cf2b Wrote retrieve boardgame and retrieve collection tests 2024-08-01 14:41:44 +02:00
Yarne Coppens
7598acddf9 Started work on testing 2024-08-01 14:31:17 +02:00
Yarne Coppens
7c08a285a9 Removed debug print statement 2024-08-01 14:12:47 +02:00
Yarne Coppens
2221243778 Removed the allowance of response code 202, as this means no data is returned yet 2024-08-01 14:09:04 +02:00
Yarne Coppens
8d37ecd4d4 Merge branch 'new_boardgame_classes' into fastapi 2024-08-01 12:40:14 +02:00
Yarne Coppens
c02dc69b64 Added expansions to collection retrieval 2024-08-01 12:39:36 +02:00
Yarne Coppens
188f4d2806 Can now retrieve extra info about collection board games 2024-08-01 12:34:55 +02:00
Yarne Coppens
77472e8ff4 Gave all board game classes a type 2024-08-01 12:16:50 +02:00
Yarne Coppens
d0fb364808 Added comments 2024-08-01 12:16:41 +02:00
Yarne Coppens
655b1b5cf0 Created board game type Enum 2024-08-01 12:05:51 +02:00
Yarne Coppens
12c9696dff Removed unused items endpoint 2024-08-01 11:59:40 +02:00
Yarne Coppens
ba0bd44116 Created new board game classes 2024-08-01 11:48:29 +02:00
Yarne Coppens
03936192fa Included expansions in collection retrieval 2024-08-01 11:10:48 +02:00
Yarne Coppens
cfff61853a Added endpoint to retrieve wishlist 2024-08-01 10:35:51 +02:00
Yarne Coppens
04906e67c7 expansion_ids are now correctly filled 2024-08-01 10:26:40 +02:00
Yarne Coppens
e0c8a6c7dd Separated function to retrieve boardgames from collection url, eg. for wishlist retrieval 2024-08-01 10:11:08 +02:00
Yarne Coppens
5b8bd40970 Enabled working collection endpoint to retrieve all boardgames from owned collection 2024-08-01 10:05:17 +02:00
Yarne Coppens
5f05e6bf82 Removed debug print statement 2024-08-01 09:52:34 +02:00
Yarne Coppens
7985fe0bbc Fixed variable naming bug 2024-08-01 09:51:49 +02:00
Yarne Coppens
cf59b7e24b Can now get multiple board games at once 2024-08-01 09:50:55 +02:00
Yarne Coppens
ecaea2222a Started work on getting owned collection 2024-07-31 16:03:24 +02:00
Yarne Coppens
fa90875ad0 Added assertion to make sure there are no duplicate sessions 2024-07-31 15:43:33 +02:00