Commit 5285783a authored by Knut Behrends's avatar Knut Behrends
Browse files

improve inserter-js-scripts for site, hole, core

parent 4aeccc45
"use strict"
lodash = require("lodash")
const lodash = require("lodash")
class CoreDefaults {}
CoreDefaults.core_types = [
"B",
......
......@@ -190,6 +190,7 @@ module.exports = class Core {
// this.find_drilled_length(this.barrel_length)
// )
this._props.bottom_depth = util.round(this.top_depth + this.drilled_length)
this._props.drillers_depth = this.top_depth
return this._props
}
......
......@@ -14,7 +14,7 @@ const util = require("./classes/fake-util.js")
// this URL gets holes sorted descending, (newest holes first)
let num_holes_to_insert = 1
let program_id = 1
let site_id = 18
let site_id = 6
//let expedition_id = irrelevant here
const api_url_frag = `/api/v1/form?`
let qs_hole = {
......
......@@ -12,7 +12,7 @@ const Site = require("./classes/fake-sites.js")
// this URL gets sites sorted descending, (newest sites first)
let num_sites_to_insert = 1
let program_id = 1
let expedition_id = 16
let expedition_id = 6
const api_url_frag = `/api/v1/form?`
let qs_site = {
"per-page": 100,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment