From 0eec7b0d7a58a8bcf90cbbbe0f4ffe17593eb8c5 Mon Sep 17 00:00:00 2001 From: Mohammad Rameen Date: Sun, 14 Sep 2025 10:57:37 +0530 Subject: [PATCH] Added final project --- .../day-63-library-project-end/.DS_Store | Bin 0 -> 6148 bytes .../instance/books.db | Bin 0 -> 12288 bytes .../day-63-library-project-end/main.py | 102 ++++++++++++++++++ .../requirements.txt | 3 + .../templates/add.html | 18 ++++ .../templates/edit_rating.html | 16 +++ .../templates/index.html | 23 ++++ 7 files changed, 162 insertions(+) create mode 100644 Visual Studio Code Projects/day-63-library-project-end/.DS_Store create mode 100644 Visual Studio Code Projects/day-63-library-project-end/instance/books.db create mode 100644 Visual Studio Code Projects/day-63-library-project-end/main.py create mode 100644 Visual Studio Code Projects/day-63-library-project-end/requirements.txt create mode 100644 Visual Studio Code Projects/day-63-library-project-end/templates/add.html create mode 100644 Visual Studio Code Projects/day-63-library-project-end/templates/edit_rating.html create mode 100644 Visual Studio Code Projects/day-63-library-project-end/templates/index.html diff --git a/Visual Studio Code Projects/day-63-library-project-end/.DS_Store b/Visual Studio Code Projects/day-63-library-project-end/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a9580684b71a1a79fb179156dee4147d0678830b GIT binary patch literal 6148 zcmeHKOHRW;4E2;ErD8#sz-o>_ZZK5g1UUfEj{qrYA_ew24JUyOa0rgV^VsSy0kJ|* z*^=i?JkJ^DrHVU5RU$|}pIMK$HMhR&|upI$EddGjCf>bo@G*>i-77F1GA z1uElt!@sOG>+l0R_OLcK{3yQ6v zq?3y~<375x(-Vq|yCd!+om>#K(G)NRwiP&#%Q5%=%dgM>+evn13YY?WrGOh|c{af# yX>aX39QRrezlO6huN7RSU=mv~xZH|Q;L#BGJOKv9RuB=G{Sk;V*kB6$ssf+F4^v72 literal 0 HcmV?d00001 diff --git a/Visual Studio Code Projects/day-63-library-project-end/instance/books.db b/Visual Studio Code Projects/day-63-library-project-end/instance/books.db new file mode 100644 index 0000000000000000000000000000000000000000..af46130a22d735e4a157a3ef8e0d842309720008 GIT binary patch literal 12288 zcmeI%!EVzq7zc1CY3W*NGLu#f32FKym}n)+22&3RAvN7HS}pBZNRf7!s&sYNXdxC! z#(*0<1uwvn7vKRnfp`V(yZ}e+RMUVB?Y7hZlbqOb99zHJ_vP8H8)kwgGItmTISAs7~Q@pzeBnSuC)7@#lH|iuol>hJi} zAGq#as+6-Ziv&Hly^W6T)gCn0>VHiK$JtaS|DR8SEQ}9n%iXcnH~;wVQ?J{zy*=7? z_NW$)>w2$2zq>ndsFv?puhj3D*Onet4Hm{@@j87OsoZ|3HkA2zs1H88udh0r8?J(K07_G^`?Pu9UVSc_NZj|9vMrIuuDPWU99;9s%Q%5H9B+TBnmS;y@Hi~TZrr}DpOin0MXY|zK)R)mw zDB`(_dab}eF#d`E + + + + Add Book + + +
+ + + + + + + +
+ + diff --git a/Visual Studio Code Projects/day-63-library-project-end/templates/edit_rating.html b/Visual Studio Code Projects/day-63-library-project-end/templates/edit_rating.html new file mode 100644 index 0000000..d074419 --- /dev/null +++ b/Visual Studio Code Projects/day-63-library-project-end/templates/edit_rating.html @@ -0,0 +1,16 @@ + + + + + Edit Rating + + +
+

Book Name: {{book.title}}

+

Current Rating {{book.rating}}

+ + + +
+ + diff --git a/Visual Studio Code Projects/day-63-library-project-end/templates/index.html b/Visual Studio Code Projects/day-63-library-project-end/templates/index.html new file mode 100644 index 0000000..1342135 --- /dev/null +++ b/Visual Studio Code Projects/day-63-library-project-end/templates/index.html @@ -0,0 +1,23 @@ + + + + + Library + + +

My Library

+ {% if books == []: %} +

Library is empty.

+ {% endif %} +
    + {% for book in books %} +
  • + Delete + {{book.title}} - {{book.author}} - {{book.rating}}/10 + Edit Rating +
  • + {% endfor %} +
+ Add New Book + +