Commit Graph

161 Commits

Author SHA1 Message Date
Stefano Assenzo c6b54bda37
I try to make the Discord bot with little success, at the moment I focus on something else 2023-01-29 14:27:47 +00:00
Stefano Assenzo 177374a894
Ok 2023-01-28 17:42:28 +00:00
Stefano Assenzo 3f75138d16
Reorder libraries on app.py 2023-01-28 17:41:45 +00:00
Stefano Assenzo 23ac13f5d1
Now it's all about .env - I started making Whatsapp bot 2023-01-28 17:39:21 +00:00
Stefano Assenzo 76af099702
Now send a screenshot of the timetable when you find Italian language in the school time table and I have fixed the school time table so no one has trouble reading it 2023-01-28 15:28:50 +00:00
Stefano Assenzo 14b7a724ae
Remove inutil lines of code 2023-01-27 20:30:47 +00:00
Stefano Assenzo b4eb0a0b29
Now find the classes we do PE with even though we have multiple times a week 2023-01-27 20:30:11 +00:00
Stefano Assenzo aaae780530
Small code tidying up 2023-01-27 16:33:15 +00:00
Stefano Assenzo 01f83d6171
Add style on school time table - Remove inutile lines of code 2023-01-27 16:12:10 +00:00
Stefano Assenzo 6ad24a92a7
Fix little bug and simplified use 2023-01-27 15:27:13 +00:00
Stefano Assenzo 464152de50
Try new style for table 2023-01-26 17:19:45 +00:00
Stefano Assenzo 5ef9c4f0f9
Fix JSON database MongoDB 2023-01-26 17:12:51 +00:00
Stefano Assenzo debaf06011
Create simple table inteface with school time api 2023-01-26 17:06:43 +00:00
Stefano Assenzo 5c4b983e0e
Now api school time works! 2023-01-25 17:17:17 +00:00
Stefano Assenzo 54175f01cd
Now it's possible change school time table (testing) 2023-01-25 16:41:05 +00:00
Stefano Assenzo f58b8a06c6
Add comments on the code and add a simple slash commands 2023-01-25 16:00:49 +00:00
Stefano Assenzo d07dbac7f5
Add day on message Discord bot 2023-01-25 15:54:00 +00:00
Stefano Assenzo 6dfa4e3bb3
Fix little bug on Discord bot 2023-01-25 15:51:23 +00:00
Stefano Assenzo 061d0bee7e
Merge branch 'dev' of https://github.com/assenzostefano/class-website into dev 2023-01-25 15:47:58 +00:00
Stefano Assenzo f3a75fadc0
So now the Discord bot send a message when it find a subject call Lingua Italiana - I try to fix the api for school time table 2023-01-25 15:44:38 +00:00
Stefano Assenzo 88a5bcdb33 Little test 2023-01-24 15:10:19 +00:00
Stefano Assenzo 56b021398d Now reads classrooms correctly and uploads them to MongoDB 2023-01-24 14:57:16 +00:00
Stefano Assenzo bf041c0bbb
So now the bot found School Subject Italiano and send a message 2023-01-22 16:34:33 +00:00
Stefano Assenzo bb8a5d2dbc
Fix email check 2023-01-22 13:59:47 +00:00
Stefano Assenzo a945d9e72b
Upload all document on archive collection 2023-01-22 13:44:00 +00:00
Stefano Assenzo bf1f7bbf9b
Now loads teachers and school subjects correctly - I rearranged the JSON in preparation for the Discord bot. 2023-01-22 13:35:13 +00:00
Stefano Assenzo 8b65584ac3 Now it checks if the file has already been downloaded and if it is an .xlsx, and automatically starts the automatic generation of the school schedule 2023-01-14 16:36:29 +00:00
Stefano Assenzo 0f8a83c9c5 Now before uploading tasks to MongoDB check if they have already been uploaded 2023-01-14 15:23:00 +00:00
Stefano Assenzo fef82d882d Remove inutil files 2023-01-14 12:51:55 +00:00
Stefano Assenzo e4a7000399 Reoder the check homework, so now in more tidy 2023-01-14 12:48:04 +00:00
Stefano Assenzo 4fcfa71b49 Add library on requirements.txt 2023-01-13 20:45:26 +00:00
Stefano Assenzo 85c669be38 Delete my test file (ops i accidently upload the file with the other commit) 2023-01-13 20:39:37 +00:00
Stefano Assenzo 092e3c4f84 New structure JSON for DB and split date (no current test) 2023-01-13 20:37:18 +00:00
Stefano Assenzo cfb9c229f9 Create requirements.txt (empty) 2023-01-13 16:16:57 +00:00
Stefano Assenzo c1ba2cf5b5 Create API for homework 2023-01-13 15:50:30 +00:00
Stefano Assenzo 0306dc700f Now it works correctly and loads everything to the database- TO-DO: Create the api for the homework school and add the various controls before adding the homework. 2023-01-10 16:05:59 +00:00
Stefano Assenzo 8b3ce90566 So now i send all homework data to database (MongoDB) 2023-01-08 18:28:41 +00:00
Stefano Assenzo 073ccd5dfe Add publication date homework 2023-01-08 17:47:35 +00:00
Stefano Assenzo dc06dbc3c2 Now the script can even take the school subject from Nuvola 2023-01-08 17:00:51 +00:00
Stefano Assenzo f4341ea442 It finally takes homework automatically, I just have to enter the dates and upload them to the database - I started a very basic but still very broken login system. 2023-01-08 15:33:16 +00:00
Stefano Assenzo f7ce81ef5d Add logging (work in progress...) 2023-01-07 11:44:09 +00:00
Stefano Assenzo 7c30cf9b8f Fixed the .env and started Nuvola web-scraping to take homework 2023-01-07 11:38:10 +00:00
Stefano Assenzo 607d371534 Reordering comments and functions 2023-01-06 18:33:24 +00:00
Stefano Assenzo 02afe8bace I fixed the email auto check and added the comments 2023-01-06 18:29:07 +00:00
Stefano Assenzo af806c4f16 Now it works correctly, I just have to rename the file it downloads and I'm done 2023-01-05 11:40:54 +00:00
Stefano Assenzo bced0ee355 Now I can download and convert the file automatically, but the automatic generation of the school timetable doesn't work correctly at the moment 2023-01-04 16:33:28 +00:00
Stefano Assenzo 03ce9b49e8 Now it is perfect 2022-12-28 15:14:49 +00:00
Stefano Assenzo 55a24bb0a2 Test for Cloudflare Pages 2022-12-28 15:10:55 +00:00
Stefano Assenzo 6f05b82a77 I just reordered the files 2022-12-28 15:06:45 +00:00
Stefano Assenzo 6b7f0f86b6 Now it reads my emails and writes down the sender and content, I just need to implement that it only reads emails sent from my school and downloads the attachment to pass to 'update_time_school.py' which will do the rest of the work. 2022-12-28 15:04:42 +00:00