Skip to content

Commit

Permalink
Now only store processing for the minor version, allowing patch updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsurfer committed Nov 24, 2023
1 parent 52b9dfe commit 0885728
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 697 deletions.
6 changes: 5 additions & 1 deletion app/scicrunch_process_results.py
Expand Up @@ -3,17 +3,21 @@
import re
from app.config import Config
from flask import jsonify

from os import listdir
from app.scicrunch_processing_common import SKIPPED_OBJ_ATTRIBUTES


def convert_patch_to_X(version):
return version[:-1] + 'X'

# process_kb_results: Loop through SciCrunch results pulling out desired attributes and processing DOIs and CSV files
def _prepare_results(results):
output = []
hits = results['hits']['hits']
for i, hit in enumerate(hits):
try:
version = hit['_source']['item']['version']['keyword']
version = convert_patch_to_X(version)
except KeyError:
# Try to get minimal information out from the datasets
version = 'undefined'
Expand Down
329 changes: 0 additions & 329 deletions app/scicrunch_processing_v_1_1_2.py

This file was deleted.

0 comments on commit 0885728

Please sign in to comment.