scorelab / OpenMF

An Open Source Mobile Forensics Investigation Tool for Android Platform
Apache License 2.0
150 stars 97 forks source link

Bug in API for getting list of cases #208

Closed swapnalshahil closed 3 years ago

swapnalshahil commented 3 years ago

Describe the bug There is a bug in API: http://127.0.0.1:5000/case/list

@case.route('/list', methods=["GET"])
 def list():
    all_cases = Case.query.order_by(Case.timestamp).all()
    result = cases_schema.dump(all_cases)
    return jsonify(result)

Case model does not have timestamp column.

To Reproduce We can use extracted_on instead.