Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Imafikus committed Oct 9, 2021
1 parent ce3dfe7 commit 911fef3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions backend/comment_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ def get_all_choosen_comments() -> List[ChoosenComment]:
break
return chosen_comments

def get_comment() -> ChoosenComment:
return random.choice(get_all_choosen_comments())

def main(message, context):
db.insert_choosen_comments(get_all_choosen_comments())

Expand Down
7 changes: 0 additions & 7 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ def get_comment():
'content': comment.content,
'url': comment.url
}

@app.get('/all_comments')
def get_comment():
all_comments = db.get_choosen_comments()
return {
'all_comments': all_comments,
}

if __name__ == '__main__':
print(db.get_choosen_comments())

0 comments on commit 911fef3

Please sign in to comment.