Skip to content

Commit

Permalink
Fix handling of number fields
Browse files Browse the repository at this point in the history
  • Loading branch information
navarro committed Oct 1, 2020
1 parent a12524b commit 0e66351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/route_xdcdb-fos.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def Retrieve_Source(self, cursor):
def Store_Destination(self, new_items):
self.cur = {} # Items currently in database
self.curdigest = {} # Hashes for items currently in database
self.curstring = {} # Hashes for items currently in database
self.curstring = {} # String of items currently in database
self.new = {} # New resources in document
now_utc = datetime.utcnow()

Expand All @@ -230,9 +230,9 @@ def Store_Destination(self, new_items):
continue
try:
model = XSEDEFos(field_of_science_id=nitem['field_of_science_id'],
parent_field_of_science_id=str(nitem['parent_field_of_science_id']),
parent_field_of_science_id=nitem['parent_field_of_science_id'],
field_of_science_desc=str(nitem['field_of_science_desc']),
fos_nsf_id=str(nitem['fos_nsf_id']),
fos_nsf_id=nitem['fos_nsf_id'],
fos_nsf_abbrev=str(nitem['fos_nsf_abbrev']),
is_active=str(nitem['is_active']),
)
Expand Down

0 comments on commit 0e66351

Please sign in to comment.