Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor utils module #63

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

alexdunnjpl
Copy link
Contributor

🗒️ Summary

Refactors the utils module for ease of maintenance

⚙️ Test Data and/or Report

Unit tests pass, manually tested all sweepers.

♻️ Related Issues

not related to any issue

@alexdunnjpl alexdunnjpl force-pushed the post-repairkit-repair-kit-refactor branch from 6de4713 to 48a0468 Compare August 31, 2023 21:49


def get_human_readable_elapsed_since(begin: datetime) -> str:
elapsed_seconds = (datetime.now() - begin).total_seconds()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a humanize package that does stuff like this too—but this is pretty concise, which is nice. Just what you need!

Copy link
Member

@nutjob4life nutjob4life left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alexdunnjpl alexdunnjpl merged commit 87061ac into main Aug 31, 2023
1 check passed
@alexdunnjpl alexdunnjpl deleted the post-repairkit-repair-kit-refactor branch August 31, 2023 21:56
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