From d657fd36861b4aa2ed9a65d955f1dc1ed8985ecf Mon Sep 17 00:00:00 2001 From: junikimm717 <68165832+junikimm717@users.noreply.github.com> Date: Sat, 24 Dec 2022 23:04:49 -0500 Subject: [PATCH] documentation syntax clarified --- templates/admin.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/admin.html b/templates/admin.html index 1d24d75..79f1486 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -39,22 +39,22 @@ import requests session = requests.session() baseurl = "chemicaldb.teidkim.me" -session.post(baseurl + "/admin/login", {"username": <username>, "password": <password>}) +session.post(baseurl + "/admin/login", {"username": (username), "password": (password)}) fields = { "chemical_db_id": <db id from another database>, - "library": (library), + "library": (library, is a string), # name, formula, and mass are required fields! - "name": (name of the chemical), - "formula": (molecular formula), - "mass": (monoisotopic mass, float), + "name": (name of the chemical, is a string), + "formula": (molecular formula, is a string), + "mass": (monoisotopic mass, is a float), "pubchem_cid": <string>, "pubmed_refcount": <integer> "standard_class": <string> - "inchikey": <inchikey>, - "inchikey14": <inchikey14>, + "inchikey": <string>, + "inchikey14": <string>, # final_mz and final_rt are required fields! - "final_mz": (m/z ratio after experiment, float), - "final_rt": (retention time after experiment, float), + "final_mz": (m/z ratio after experiment, is a float), + "final_rt": (retention time after experiment, is a float), "final_adduct": <string>, "final_adduct": <string>, "detected_adducts": <string>,