diff --git a/.gitignore b/.gitignore index f76e48cd..79e88ab3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,10 @@ __pycache__/ ./.env -.env -venv -.venv .DS_Store -hugo/content/developers/*.xlsx -hugo/content/developers/*.zip -hugo/content/developers/**/*.json +.env .gitignore .hugo_build.lock +.venv .vscode/ data/articles.json data/embeds.json @@ -17,17 +13,24 @@ db-data/ dev.py django/data/ django/gregory/data/ +django/gregory/migrations/ django/gregory/ml_models/ +django/indexers/input/*.json django/static docker-data/ docker-python/ env env3.10 +env311 hugo/content/articles hugo/content/articles/*/ +hugo/content/developers/*.xlsx +hugo/content/developers/*.zip +hugo/content/developers/**/*.json hugo/content/developers/articles.json hugo/content/developers/articles.xlsx hugo/content/developers/articles.zip +hugo/content/developers/articles.zip hugo/content/developers/trials.json hugo/content/developers/trials.xlsx hugo/content/developers/trials.zip @@ -46,20 +49,9 @@ public/ python-ml/data/202*-*.csv python-ml/data/202*-*.json python-ml/data/source.json -python-ml/models/model_gnb.joblib -python-ml/models/model_lr.joblib -python-ml/models/model_lsvc.joblib -python-ml/models/model_mnb.joblib +python-ml/models/ python-ml/utils/__pycache__/ -python-ml/utils/__pycache__/model_utils.cpython-37.pyc -python-ml/utils/__pycache__/text_utils.cpython-37.pyc resources/ -sqlite-to-postgres/ venv3 +venv311 workspace.code-workspace -hugo/data/embeds.json -django/indexers/input/*.json -hugo/content/developers/articles.zip -hugo/content/developers/trials.zip -hugo/content/developers/articles.zip -hugo/content/developers/trials.zip diff --git a/django/api/serializers.py b/django/api/serializers.py index 71242a82..0c224ea7 100644 --- a/django/api/serializers.py +++ b/django/api/serializers.py @@ -16,7 +16,7 @@ class TrialSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Trials - fields = ['trial_id','title','summary','published_date','discovery_date','link','source','relevant'] + fields = ['trial_id','title','summary','published_date','discovery_date','link','source','relevant','identifiers'] read_only_fields = ('discovery_date',) class SourceSerializer(serializers.HyperlinkedModelSerializer):