Skip to content

Combine the listArchiveCourses and statArchiveCourses methods.#37

Merged
Alex-Jordan merged 1 commit into
Alex-Jordan:archive-sizesfrom
drgrice1:archive-sizes-suggestion
Jul 9, 2026
Merged

Combine the listArchiveCourses and statArchiveCourses methods.#37
Alex-Jordan merged 1 commit into
Alex-Jordan:archive-sizesfrom
drgrice1:archive-sizes-suggestion

Conversation

@drgrice1

@drgrice1 drgrice1 commented Jul 9, 2026

Copy link
Copy Markdown

The listArchiveCourses also stats the archive files found and returns the files as a hash whose keys are the course ids and the values are references to hashes containing the filename (the basename of the file including the .tar.gz extension) and file size

Both of the places that use the listArchiveCourses method are updated to use this return value.

The `listArchiveCourses` also stats the archive files found and returns
the files as a hash whose keys are the course ids and the values are
references to hashes containing the `filename` (the basename of the file
including the `.tar.gz` extension) and file `size`

Both of the places that use the `listArchiveCourses` method are updated
to use this return value.
@drgrice1 drgrice1 force-pushed the archive-sizes-suggestion branch from 372d125 to da34ce9 Compare July 9, 2026 11:34
@drgrice1

drgrice1 commented Jul 9, 2026

Copy link
Copy Markdown
Author

I also added some basic rounding to the archive file size instead of just converting to an int. This is only done for MB and GB sizes. Basicall, MB sizes are rounded to one decimal place, and GB sizes to two. Looking at my archive lists the MB and GB sizes (actually I don't have any GB sizes currently) just seemed off. I was just seeing several 1 MB or 2 MB file sizes. It just seemed to imprecise to me.

@Alex-Jordan Alex-Jordan merged commit 55543a7 into Alex-Jordan:archive-sizes Jul 9, 2026
2 checks passed
@Alex-Jordan

Copy link
Copy Markdown
Owner

Thanks for making the changes for me. I've merged this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants