gvlktejaswi commited on
Commit
6ca6f27
·
verified ·
1 Parent(s): 970a5b6

Update page_files/categorized/Backend/category_push.py

Browse files
page_files/categorized/Backend/category_push.py CHANGED
@@ -37,7 +37,7 @@ CATEGORY_TABLES = ["Composites_materials", "Fibers", "Polymers"]
37
  # the real 33 columns shared by all three tables (from information_schema)
38
  TARGET_COLUMNS = [
39
  "material_name", "material_abbreviation", "section", "property_name",
40
- "value", "unit", "english", "test_condition", "comments", "image",
41
  "material_key", "material_class", "trade_grade", "manufacturer", "matrix",
42
  "fiber", "fiber_volume_fraction", "value_raw", "value_num", "value_min",
43
  "value_max", "qualifier", "unit_canonical", "value_si", "source_pdf",
@@ -271,6 +271,7 @@ def conform_to_category(
271
  "test_condition": _s(row.get("test_condition")),
272
  "comments": _s(row.get("comments")),
273
  "image": img_bytes,
 
274
  "material_key": _s(row.get("material_name")).lower().replace(" ", "_"),
275
  "material_class": material_class,
276
  "trade_grade": "",
 
37
  # the real 33 columns shared by all three tables (from information_schema)
38
  TARGET_COLUMNS = [
39
  "material_name", "material_abbreviation", "section", "property_name",
40
+ "value", "unit", "english", "test_condition", "comments", "image", "image_url",
41
  "material_key", "material_class", "trade_grade", "manufacturer", "matrix",
42
  "fiber", "fiber_volume_fraction", "value_raw", "value_num", "value_min",
43
  "value_max", "qualifier", "unit_canonical", "value_si", "source_pdf",
 
271
  "test_condition": _s(row.get("test_condition")),
272
  "comments": _s(row.get("comments")),
273
  "image": img_bytes,
274
+ "image_url": stored_path,
275
  "material_key": _s(row.get("material_name")).lower().replace(" ", "_"),
276
  "material_class": material_class,
277
  "trade_grade": "",