Skip to content

Commit

Permalink
Sample summary report adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidysymons committed Dec 2, 2024
1 parent 43f6674 commit 2950cf6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions microsetta_admin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,18 @@ def per_sample_summary():

resource = pd.DataFrame(result['samples'])
order = ['sampleid', 'project', 'account-email',
'account-first-name', 'account-last-name',
'source-type', 'site-sampled', 'sample-date',
'sample-time', 'sample-status', 'sample-received',
'ffq-taken', 'ffq-complete', 'vioscreen_username']
'first-scan-status', 'first-scan-timestamp',
'latest-scan-status', 'latest-scan-timestamp',
'sample-has-inconsistencies', 'sample-is-valid',
'no-associated-source', 'no-collection-info',
'no-registered-account', 'received-unknown-validity',
'ffq-taken', 'ffq-complete', 'vioscreen_username',
'kit-id', 'outbound-tracking',
'inbound-tracking', 'daklapack-order-id'
]
order.extend(sorted(set(resource.columns) - set(order)))
resource = resource[order]
if unprocessed_barcodes:
Expand Down Expand Up @@ -436,6 +445,7 @@ def per_sample_summary():
resource = pd.DataFrame(result['samples'])
if not resource.empty:
order = ['sampleid', 'project', 'account-email',
'account-first-name', 'account-last-name',
'source-type', 'site-sampled', 'sample-date',
'sample-time', 'sample-status', 'sample-received',
'first-scan-status', 'first-scan-timestamp',
Expand All @@ -445,7 +455,7 @@ def per_sample_summary():
'no-registered-account', 'received-unknown-validity',
'ffq-taken', 'ffq-complete', 'vioscreen_username',
'kit-id', 'outbound-tracking',
'inbound-tracking'
'inbound-tracking', 'daklapack-order-id'
]
order.extend(sorted(set(resource.columns) - set(order)))
resource = resource[order]
Expand Down
1 change: 1 addition & 0 deletions microsetta_admin/templates/per_sample_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ <h5>Retrieve summary for a sample</h5>
<option value="emails">Email</option>
<option value="outbound_tracking_numbers">Outbound Tracking Number</option>
<option value="inbound_tracking_numbers">Inbound Tracking Number</option>
<option value="dak_order_ids">Daklapack Order IDs</option>
</select>
</td>
</tr>
Expand Down

0 comments on commit 2950cf6

Please sign in to comment.