Commit Graph

57 Commits

Author SHA1 Message Date
csd4ni3l
ac1a29001e add logout button to submit grass touching 2025-08-14 12:12:00 +02:00
csd4ni3l
7ccb6c6d9b get challenge on window load when submitting grass touching 2025-08-14 12:10:52 +02:00
csd4ni3l
16766552c1 fix grass touching submit page not showing file input by default and trying to get username from an input that doesnt exist. 2025-08-14 12:08:15 +02:00
csd4ni3l
d78b5e702e fix grass touching submit page 2025-08-14 12:03:51 +02:00
csd4ni3l
fdb30a7f86 Add grass touching bans (which dont work yet), grass touching submit page which if used, increments the grass touching count and last grass touching, make it so only one error shows up if it fails and multiple errors cant. 2025-08-14 11:50:11 +02:00
csd4ni3l
3c1fc21c1c fix home links to be / and also fix home not adapting to user login 2025-08-12 18:30:46 +02:00
csd4ni3l
2775f3bfec fix logout not redirecting and make the unathorized redirect to login 2025-08-12 18:19:44 +02:00
csd4ni3l
f033c9da62 make the pages global and add navbar to each of them and dont require authentication, also add logout button 2025-08-12 18:18:22 +02:00
csd4ni3l
f6f26892a8 Decrease minimum cosine similarity again 2025-08-12 17:09:27 +02:00
csd4ni3l
00684a4798 make minimum cosine similarity less 2025-08-12 17:08:54 +02:00
csd4ni3l
ed8fef70e5 Fix incorrect text giving back 200 instead of 400 2025-08-12 16:48:20 +02:00
csd4ni3l
ef2fb30106 put challenge completed at the end of submitting a challenge 2025-08-12 16:45:22 +02:00
csd4ni3l
d78bf7f26b only return text in generate_challenge 2025-08-12 16:42:12 +02:00
csd4ni3l
20350d0e85 FIx registering not working by now redirecting to register and challenges having a completed attribute 2025-08-12 16:38:11 +02:00
csd4ni3l
58130cb508 decrease default challenge word amount to 1 to make it easier to pass 2025-08-12 15:57:29 +02:00
csd4ni3l
ea4e4899d0 fix generate_challenge not working due to wrong method and only get the challenge if a username was supplied 2025-08-12 15:55:30 +02:00
csd4ni3l
37429706dd fix register not getting challenge due to mistyping 2025-08-12 15:52:50 +02:00
csd4ni3l
c5f882c32c fix register not working due to wrong url_for parameter and update README.md for a better solution to easyocr 2025-08-12 15:51:15 +02:00
csd4ni3l
27f379e0ca remove accidental debug flag(again) 2025-08-12 15:18:31 +02:00
csd4ni3l
623bd155cb fix leaderboard looks, add OCR, make the captcha only show if you add a username and password 2025-08-12 15:17:43 +02:00
csd4ni3l
453250b862 update register fields i missed 2025-08-10 17:01:09 +02:00
csd4ni3l
0307999db7 remove accidental debug flag i left in 2025-08-10 16:58:48 +02:00
csd4ni3l
ba9898a44a add new fields to user so we can track grass touching activity later, add part of the application part which currently includes a homepage and a leaderboard 2025-08-10 16:57:55 +02:00
csd4ni3l
09defab6bc fix wrong commas in database schema 2025-08-09 14:29:29 +02:00
csd4ni3l
5da21d3462 fix wrong order of values in insert 2025-08-09 14:26:55 +02:00
csd4ni3l
3d2dd3d8de change order of values in image insert 2025-08-09 14:25:07 +02:00
csd4ni3l
3309fb840e make image hash the primary key of the images table 2025-08-09 14:22:41 +02:00
csd4ni3l
c34e73d583 revert to not using flashed messages 2025-08-09 14:19:58 +02:00
csd4ni3l
27636a4429 add unathorized access flash 2025-08-09 13:03:54 +02:00
csd4ni3l
dc93c229d4 convert image uuid into string before using it 2025-08-09 12:47:58 +02:00
csd4ni3l
638193fcda Fix username not gathered in the upload route 2025-08-09 12:46:57 +02:00
csd4ni3l
75ac77dea8 make the password a password field and add username when uploading the file 2025-08-09 12:45:46 +02:00
csd4ni3l
c0eb5b59dd show error messages instead of Unknown Error, add an Images table so now the same images cant be uploaded multiple times 2025-08-09 12:42:02 +02:00
csd4ni3l
471cd21993 remove disabled flag for login button 2025-08-09 12:25:37 +02:00
csd4ni3l
2818b74d14 update requirements.txt to include bcrypt 2025-08-09 12:23:26 +02:00
csd4ni3l
54ed6eb0f4 Add experimental sqlite database and login/register 2025-08-09 12:22:01 +02:00
csd4ni3l
3d5ea65b16 remove username field which does not exist in upload route 2025-08-09 11:41:43 +02:00
csd4ni3l
104b87d555 fix png not working because of removing too many bytes of data url header 2025-08-09 11:39:11 +02:00
csd4ni3l
a8ee1c90ae add word vector cache with JSON and add a constant for the word to compare with 2025-08-09 10:30:57 +02:00
csd4ni3l
ba811d3ce7 decrease minimum similarity to make sure images pass 2025-08-09 00:34:00 +02:00
csd4ni3l
5b490b0aae re-disable button during loading 2025-08-08 23:44:29 +02:00
csd4ni3l
bf1decc912 decrease image size for faster verification and less token usage 2025-08-08 23:30:51 +02:00
csd4ni3l
7b7b23bbc0 fix image resizing requiring 2 paths instead of 1 2025-08-08 23:27:21 +02:00
csd4ni3l
cccd7a1e30 Update requirements.txt to include pillow for image resizing 2025-08-08 23:26:04 +02:00
csd4ni3l
e2f39aa3c9 Add minimum cosine similarity constant and increase it, resize image files after saving and before sending to Jina 2025-08-08 23:24:43 +02:00
csd4ni3l
3f304071e3 fix model again and fix images being inputted as text 2025-08-08 23:14:45 +02:00
csd4ni3l
881ccbda13 fix wrong model 2025-08-08 22:58:19 +02:00
csd4ni3l
f0b3a73a6d remove debug print and replace http with https 2025-08-08 19:27:22 +02:00
csd4ni3l
25f779861b decrease minimum cosine similarity to make it work 2025-08-08 18:51:36 +02:00
csd4ni3l
42a51a57e7 fix wrong url being given to jina 2025-08-08 18:50:20 +02:00