@click.command()
@click.argument('nth')
def nth_comment(nth):
query = 'SELECT * FROM comments WHERE comment_date BETWEEN 0 AND ?;'
#query = 'SELECT * FROM comments ORDER BY comment_id LIMIT ?'
# note that ORDER BY should be by date
query_args = (nth,)
resp = query_db(query, query_args)
result = jsonify(resp)
What is this? Is it still needed for project 3 and if so, how do I test it?
In api/comments.py:
What is this? Is it still needed for project 3 and if so, how do I test it?