Sort the results of file by insert date
This commit is contained in:
parent
9aee3fa9a3
commit
fce5380390
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ async def read_all_files():
|
||||||
async def read_all_files_by_patient(patientID: int):
|
async def read_all_files_by_patient(patientID: int):
|
||||||
db = dbConnection.dbConnect()
|
db = dbConnection.dbConnect()
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
query = "SELECT * FROM patient_files where patient_id = %s"
|
query = "SELECT * FROM patient_files where patient_id = %s ORDER BY insert_date DESC"
|
||||||
cursor.execute(query, (patientID,))
|
cursor.execute(query, (patientID,))
|
||||||
items = [
|
items = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue