first commit

This commit is contained in:
cid
2023-10-13 08:55:25 -07:00
parent d8ca671cb8
commit a42170457c
15 changed files with 272 additions and 0 deletions

21
entry.py Normal file
View File

@ -0,0 +1,21 @@
class Entry:
question = None
answer = None
url = None
def __init__(self, question, answer, url):
self.question = question
self.answer = answer
self.url = url
def __eq__(self, other):
if isinstance(other, Entry):
if hash(self.question) == hash(other.question):
return True
else:
return False
return False
def __hash__(self):
return hash(self.question)