Skip to content

Commit

Permalink
QC folder info
Browse files Browse the repository at this point in the history
  • Loading branch information
villanueval committed Apr 30, 2024
1 parent 2a31d3d commit b83c570
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ def dashboard_f(project_alias=None, folder_id=None, tab=None, page=None):
}
qc_check = ""
qc_details = pd.DataFrame()
qc_folder_info = ""

if folder_id is not None and folder_id != '':
folder_name = run_query(("SELECT project_folder FROM folders "
Expand Down Expand Up @@ -1141,9 +1142,13 @@ def dashboard_f(project_alias=None, folder_id=None, tab=None, page=None):
+ qc_details['file_name'].astype(str) \
+ '</a>'
qc_details = qc_details.drop(['file_id'], axis=1)
qc_folder_info = run_query(("SELECT qc_info from qc_folders where folder_id = %(folder_id)s"),
{'folder_id': folder_id}, cur=cur)
qc_folder_info=qc_folder_info[0]['qc_info']
else:
qc_check = False
qc_details = pd.DataFrame()
qc_folder_info = ""

# Disk space
project_disks = run_query(("SELECT FORMAT_BYTES(sum(filesize)) as filesize, UPPER(filetype) as filetype "
Expand Down Expand Up @@ -1209,6 +1214,7 @@ def dashboard_f(project_alias=None, folder_id=None, tab=None, page=None):
kiosk=kiosk,
user_address=user_address,
qc_check=qc_check,
qc_folder_info=qc_folder_info,
qc_details=[qc_details.to_html(table_id='qc_details_table',
index=False,
border=0,
Expand Down
1 change: 1 addition & 0 deletions web_app/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ <h2><span class="badge bg-dark d-flex">Project Details</span></h2>
<div class="row">
<div class="col-3">
<h4>QC Issues Found:</h4>
<p>{{ qc_folder_info }}</p>
</div>
<div class="col-9">
{% for table in qc_details %}
Expand Down

0 comments on commit b83c570

Please sign in to comment.