app: Update emoji in sidebar.

This commit is contained in:
Vishnu KS
2020-08-23 23:37:13 +05:30
parent 5bb6865ba6
commit 76f2f431c1
2 changed files with 29 additions and 15 deletions

View File

@@ -12,45 +12,59 @@
"emoji": "👩🏾" "emoji": "👩🏾"
}, },
{ {
"name": "History" "name": "History",
"emoji": "📜"
}, },
{ {
"name": "Science and Medicine" "name": "Science and Medicine",
"emoji": "🔬"
}, },
{ {
"name": "Logic and Problem Solving" "name": "Logic and Problem Solving",
"emoji": "🧩"
}, },
{ {
"name": "Politics" "name": "Politics",
"emoji": "🗳️"
}, },
{ {
"name": "Economics" "name": "Economics",
"emoji": "📈"
}, },
{ {
"name": "Gender" "name": "Gender",
"emoji": "🏳️‍🌈"
}, },
{ {
"name": "Sexuality" "name": "Sexuality",
"emoji": "😘"
}, },
{ {
"name": "Education" "name": "Education",
"emoji": "🏫"
}, },
{ {
"name": "Writing" "name": "Writing",
"emoji": "📝"
}, },
{ {
"name": "Theater and Film" "name": "Theater and Film",
"emoji": "🎬"
}, },
{ {
"name": "Health" "name": "Health",
"emoji": "👩‍⚕️"
}, },
{ {
"name": "Travel" "name": "Travel",
"emoji": "🛩️"
}, },
{ {
"name": "Language" "name": "Language",
"emoji": "🉐"
}, },
{ {
"name": "Nature" "name": "Nature",
"emoji": "🌲"
} }
] ]

View File

@@ -23,7 +23,7 @@ def get_details(book_object):
book_object["rating"] = book.find("average_rating").text book_object["rating"] = book.find("average_rating").text
book_object["pages"] = book.find("num_pages").text book_object["pages"] = book.find("num_pages").text
book_object["image_url"] = book.find("image_url").text book_object["image_url"] = book.find("image_url").text
if (description := book.find("description").text): if (description := book.find("description").text) :
book_object["description"] = BeautifulSoup(description).text book_object["description"] = BeautifulSoup(description).text
book_object["isbn"] = book.find("isbn").text book_object["isbn"] = book.find("isbn").text
return True return True