dfeinzimer / beepboopbackend

CSUF CPSC 476 Spring 2019 - Back-End Engineering
0 stars 0 forks source link

Needs conversion #21

Closed dfeinzimer closed 5 years ago

dfeinzimer commented 5 years ago

In api/comments.py:

@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?

danielacevedo1215 commented 5 years ago

No, I don't think that is needed for project 3.

dfeinzimer commented 5 years ago

Turns out these are Flask custom commands.