Closed iwmstjp closed 1 month ago
This pull request refactors and improves the Flask application for MetagenoMongo. It focuses on code organization, error handling, and file import functionality. The changes aim to enhance code readability, maintainability, and robustness.
Change | Details | Files |
---|---|---|
Refactored global variables and constants |
|
flask-version/metagenomongo/app.py |
Improved file import functionality |
|
flask-version/metagenomongo/app.py |
Refactored and simplified route handlers |
|
flask-version/metagenomongo/app.py |
Enhanced error message display |
|
flask-version/metagenomongo/static/index_with_table.js flask-version/metagenomongo/templates/index_with_table.html |
Minor code style improvements |
|
flask-version/metagenomongo/module/validation.py |
@gpetho I replaced my repository with this repository on gpu-2.
@iwmstjp I have merged this pull request.
As you have noticed, I cleaned up the code slightly. I replaced the nested conditionals by a single flat conditional with and
logical operators. The two are semantically equivalent, but I think a conjunction in a complex condition is easier to read and understand than nesting a conditional.
After merging this PR, I will replace my repository to this repository on gpu-2. This will be my last PR.
Summary by Sourcery
Refactor the Flask application code for better readability and maintainability by renaming constants and modularizing file handling logic. Enhance the user interface by adding a JavaScript function to improve error message interaction.
Enhancements: