aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/metadata_edits.py
AgeCommit message (Collapse)Author
2024-03-26Remove unused imports.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Rename "required_access" to "required_trait_access".Munyoki Kilyungi
* gn2/wqflask/decorators.py (required_access): Rename this to ... (required_trait_access): ... this. * gn2/wqflask/metadata_edits.py: Ditto. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-01-02Consistently use GN_VERSION from app config.Arun Isaac
GN_VERSION is set in the configuration file and read into the app config dictionary. Use that instead of re-reading from the etc/VERSION file. * gn2/utility/tools.py (gn_version): Delete function. (GN_VERSION): Delete variable. * gn2/wqflask/metadata_edits.py (display_phenotype_metadata, display_probeset_metadata, show_history): Use GN_VERSION in app config. * gn2/wqflask/views.py: Do not import GN_VERSION from gn2.utility.tools. (handle_generic_exceptions, index_page.__render__, submit_trait_form): Use GN_VERSION in app config.
2023-12-29Namespace all modules under gn2.Arun Isaac
We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service.