Skip to content

Commit

Permalink
When loading a data table, if numeric column gets numberType == integ…
Browse files Browse the repository at this point in the history
…er, set storageType to integer as well.
  • Loading branch information
jon-ide committed Jun 7, 2024
1 parent 8b3d42c commit d5ae6ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/views/data_tables/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,9 @@ def load_data_table(uploads_path: str = None,
ratio_node = new_child_node(names.RATIO, ms_node)
numeric_domain_node = new_child_node(names.NUMERICDOMAIN, ratio_node)
number_type = 'real'
if str(dtype).startswith('int'): # FIXME - we can do better than this
if str(dtype).startswith('int'):
number_type = 'integer'
storage_type_node.content = 'integer'
number_type_node = new_child_node(names.NUMBERTYPE, numeric_domain_node, content=number_type)
numeric_domain_node = new_child_node(names.UNIT, ratio_node)

Expand Down

0 comments on commit d5ae6ac

Please sign in to comment.