10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 18:06:06 +02:00

Fix method missing in data class

This commit is contained in:
Mickaël Véril 2019-09-16 09:47:57 +02:00
parent f690de40d3
commit f72186fed3
2 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,7 @@ draft: false
var els=[];
md.push(["Title",dat.title]);
md.push(["Code",dat.code]);
md.push(["Method",dat.method])
md.push(["Basis",dat.basis]);
md.push(["DOI",dat.doi]);
md.forEach(function(element){

View File

@ -66,6 +66,7 @@ class data {
constructor(){
this.title='';
this.code=null;
this.method=null;
this.basis=null;
this.doi=null;
this.excitations=[];
@ -99,6 +100,9 @@ class data {
dat.code=new code(vals[0],null);
}
break;
case "method":
dat.method=val;
break;
case "basis":
var vals=val.split(",")
if(vals.length>=2){