Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Add 10 new quotes in denis-znanec.json and add utf-8 encoding #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions motivate/data/denis-znanec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"data": [{
"quote": "Do the best you can. No one can do more than that.",
"author": "John Wooden"
},
{
"quote": "Don’t Quit",
"author": "Unknown"
},
{
"quote": "It’s never too late to be what you might’ve been.",
"author": "George Eliot"
},
{
"quote": "I choose to make the rest of my life, the best of my life.",
"author": "Louise Hay"
},
{
"quote": "Trust yourself that you can do it and get it.",
"author": "Baz Luhrmann"
},
{
"quote": "Don’t let what you can’t do interfere with what you can do",
"author": "Unknown"
},
{
"quote": "You can do anything you set your mind to.",
"author": "Benjamin Franklin"
},
{
"quote": "All we can do is the best we can do.",
"author": "David Axelrod"
},
{
"quote": "The world is full of nice people. If you can’t find one, be one.",
"author": "Nishan Panwar"
},
{
"quote": "Twenty years from now you’ll be more disappointed by the things you did not do than the ones you did.",
"author": "Mark Twain"
}
]
}
2 changes: 1 addition & 1 deletion motivate/find_dupes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
quotes = []
for f in all_json:
filename = os.path.join(data_dir, f)
with open(filename) as json_data:
with open(filename, encoding='utf-8') as json_data:
quotes += json.load(json_data)['data']

uniq_authors = {quote['author'] for quote in quotes}
Expand Down