diff options
| author | Munyoki Kilyungi | 2025-06-24 19:50:43 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-07-07 07:58:31 +0300 |
| commit | b16283830cdfa7c3a37ce432c3a59488e42ff858 (patch) | |
| tree | eb036b4e8d7c70c70b4be4e841f5e60504e8922c /gn3/case_attributes.py | |
| parent | 0755a43b96299169e00e9ab057d580e99af0070c (diff) | |
| download | genenetwork3-b16283830cdfa7c3a37ce432c3a59488e42ff858.tar.gz | |
Move EditStatus to gn3.db.case_attributes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/case_attributes.py')
| -rw-r--r-- | gn3/case_attributes.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py index 8312f0d..dae6def 100644 --- a/gn3/case_attributes.py +++ b/gn3/case_attributes.py @@ -7,7 +7,7 @@ import tempfile import lmdb import pickle from typing import Union -from enum import Enum, auto + from pathlib import Path from functools import reduce from datetime import datetime @@ -15,7 +15,7 @@ from urllib.parse import urljoin import requests from MySQLdb.cursors import DictCursor -from gn3.db.case_attributes import CaseAttributeEdit +from gn3.db.case_attributes import CaseAttributeEdit, EditStatus from authlib.integrations.flask_oauth2.errors import _HTTPException from flask import ( jsonify, @@ -44,15 +44,6 @@ class NoDiffError(ValueError): super().__init__( self, "No difference between existing data and sent data.") -class EditStatus(Enum): - """Enumeration for the status of the edits.""" - review = auto() # pylint: disable=[invalid-name] - approved = auto() # pylint: disable=[invalid-name] - rejected = auto() # pylint: disable=[invalid-name] - - def __str__(self): - """Print out human-readable form.""" - return self.name class CAJSONEncoder(json.JSONEncoder): """Encoder for CaseAttribute-specific data""" |
