Commit Graph

1666 Commits

Author SHA1 Message Date
Marlon a723ef5a22 🐛 Fix excel import when answer is a number 2024-07-14 22:14:36 +02:00
Mawoka 2a691817fa Some basic rust code for new backend 2024-07-12 11:54:32 +02:00
Mawoka 0ad07eced6 Option to hide question results 2024-07-11 21:53:18 +02:00
Mawoka e6d7a8d087 Move basic SocketIO session handling to redis 2024-07-11 19:50:22 +02:00
Marlon adbc28beb1 Merge pull request #384 from BogPlaymate/master 2024-07-11 00:38:19 +02:00
Mawoka abafdd40f9 🐛 Fix Pydantic breaking changes 2024-07-11 00:27:45 +02:00
Mawoka b8aebd31ee Merge branch 'master' of https://github.com/BogPlaymate/ClassQuiz into BogPlaymate/master 2024-07-10 23:48:49 +02:00
Joe Fox f630ed6ad7 Delete classquiz/config (copy).py
Cleaning up
2024-07-11 06:32:46 +09:00
Joe Fox 9df52a49f6 Delete frontend/src/routes/BACKUP+page (copy).svelteBACKUP
Cleaning up
2024-07-11 06:32:27 +09:00
Joe Fox 629417239c Delete classquiz/db/models (copy).py
Cleaning up
2024-07-11 06:29:12 +09:00
Joe Fox cb729c496f Delete frontend/src/lib/components/BACKUPcommandpalette (copy).svelteBACKUP
Cleaning up
2024-07-11 06:28:22 +09:00
Joe Fox d7332e8b85 Delete classquiz/routers/sitemap (copy).py
Cleaning up
2024-07-11 06:27:45 +09:00
Joe Fox 5ee8016003 Delete frontend/src/routes/account/login/BACKUPstart_window (copy).svelteBACKUP
Cleaning up
2024-07-11 06:27:17 +09:00
Joe Fox 9a1f2726b5 Delete frontend/src/routes/account/login/BACKUPselect_method (copy).svelteBACKUP
Cleaning up
2024-07-11 06:27:03 +09:00
Joe Fox a7dafb6625 Delete frontend/vite.config (copy).js
Cleaning up
2024-07-11 06:26:15 +09:00
Joe Fox c2a691c100 Delete frontend/package (copy).json
Cleaning up
2024-07-11 06:25:56 +09:00
Joe Fox 841da4acaf Delete frontend/Dockerfile (copy)
Cleaning up
2024-07-11 06:25:36 +09:00
Joe Fox 3e4a9441cc Delete docker-compose (copy).yml
Cleaning up
2024-07-11 06:22:05 +09:00
pre-commit-ci[bot] add85dc29f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-10 19:40:35 +00:00
Marlon 9b97b1ddf6 Merge branch 'master' into master 2024-07-10 21:40:21 +02:00
BogPlaymate b9df60c452 Three changes:
1) Check whether a directory exists before attempting to create it (avoids warning message)
2) Check whether podman volume exists before attempting to create it (avoids warning message)
3) Check which Linux distribution is running, so that Redis can be launched. I have only tested this on Linux Mint (which is Ubunto based) so please check the uname -rv command on your machine. It should return a string which includes "Alpine". The mechanism for checking the Linux version is not perfect, but we probably  want to keep the run_tests as short as possible.

Any feedback welcomed. Have a great day!
2024-07-10 07:00:15 +09:00
BogPlaymate 65cbcf2282 I made a minor error in the last push, so am pushing this again.
Config file changes
This file can now be pushed to the main branch. The following changes have taken place:
1) Removed my personal data.
2) Made it compliant with pydantic 2. This involved:
    a) Changing the way of noting optional strings (now 'none' strings). This is as elegant as is possible.
    b) Updating the imports. Origin code results in "pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.7/migration/#basesettings-has-moved-to-pydantic-settings for more details.
    c) converting urls using the str() method. Origin code results in AttributeError: 'pydantic_core._pydantic_core.Url' object has no attribute 'decode' For further information visit https://errors.pydantic.dev/2.7/u/import-error"

New developers will still need to fill out the mail_address, mail_password, mail_username, mail_port and secret_key before they can run the code. This is by design, though.
2024-07-09 18:01:44 +09:00
BogPlaymate d7a39513f6 Config file changes
This file can now be pushed to the main branch. The following changes have taken place:
1) Removed my personal data.
2) Made it compliant with pydantic 2. This involved:
    a) Changing the way of noting optional strings (now 'none' strings). This is as elegant as is possible.
    b) Updating the imports. Origin code results in "pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.7/migration/#basesettings-has-moved-to-pydantic-settings for more details.
    c) converting urls using the str() method. Origin code results in AttributeError: 'pydantic_core._pydantic_core.Url' object has no attribute 'decode' For further information visit https://errors.pydantic.dev/2.7/u/import-error"

New developers will still need to fill out the mail_address, mail_password, mail_username, mail_port and secret_key before they can run the code. This is by design, though.

Hope this saves time, Mawoka!
2024-07-09 17:54:52 +09:00
BogPlaymate d3e311ede5 Resolved naming conflict 2024-07-09 06:40:09 +09:00
Mawoka 598f0f22e3 Fix RootModel 2024-07-08 11:43:15 +02:00
Mawoka f189d72728 Restore login.py with webauthn option 2024-07-08 11:40:54 +02:00
Mawoka 0acd34aad5 Cleanup of run_tests.sh script 2024-07-08 11:32:59 +02:00
Mawoka 5ba2484a3a Fix broken pnpm lock file 2024-07-08 11:24:31 +02:00
Mawoka 0dfcf2e454 Merge branch 'master' of https://github.com/BogPlaymate/ClassQuiz into BogPlaymate/master 2024-07-08 11:23:23 +02:00
Mawoka 5a15ef2dc9 Update pydantic properly 2024-07-08 11:20:16 +02:00
Joe Fox 1d312811ff Update docker-compose.yml
Restoring this file to the state it was originally in.
2024-07-08 17:58:30 +09:00
Mawoka 695b3b43c6 Remove Backups and copies 2024-07-08 10:42:18 +02:00
Marlon 20911c74cd Test Commit 2024-07-08 10:42:17 +02:00
pre-commit-ci[bot] 518a9d72f9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-08 10:42:17 +02:00
BogPlaymate 800711b8b6 Unusused code was previously commented out. This change deletes it entirely. 2024-07-08 10:41:56 +02:00
BogPlaymate 4d6e919d77 Committing Everything 2024-07-08 10:41:54 +02:00
Mawoka 6ac607594b Remove Backups and copies 2024-07-08 10:40:02 +02:00
Marlon 8be0172396 Test Commit 2024-07-08 10:38:38 +02:00
Mawoka 2bfd73412d 🐛 Fix dev docker compose 2024-07-08 10:28:48 +02:00
Mawoka 523e26a0fa Add docker compose to replace old dev script 2024-07-08 10:20:50 +02:00
pre-commit-ci[bot] 1907b8ac43 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-07 12:19:28 +00:00
BogPlaymate 95647ee794 Unusused code was previously commented out. This change deletes it entirely. 2024-07-07 21:14:47 +09:00
BogPlaymate 82900f3e3d Committing Everything 2024-07-05 19:22:01 +09:00
Mawoka a686aca841 🐛 Fix S3 upload not working 2024-06-16 12:28:54 +02:00
Mawoka 7e5acf82c6 🐛 Fix S3 upload not working 2024-06-15 23:23:26 +02:00
Mawoka e3788c815f 🐛 Fix S3 upload not working 2024-06-15 23:17:59 +02:00
Mawoka 0e29a22141 🐛 Fix S3 upload not working 2024-06-15 23:16:02 +02:00
Mawoka dcf3a1cee3 🐛 Fix S3 upload not working 2024-06-15 23:13:10 +02:00
Mawoka ac1072b4fa 🐛 Fix S3 upload not working 2024-06-15 21:47:55 +02:00
Mawoka fe12cf099f 🐛 Fix s3 upload failing 2024-06-15 21:16:41 +02:00