Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Dec 26, 2023
1 parent c3c0f80 commit b9adced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions material_parsers/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def process_link(self):

return json.dumps(result)

def process_materials(self):
def process_material(self):
input_raw = request.forms.get("texts")
if input_raw is None:
input_raw = request.forms.get("text")
Expand Down Expand Up @@ -330,7 +330,7 @@ def init(host='0.0.0.0', port='8080', config="config.json", development=False):
app = Service()

bottle.route('/process/link', method="POST")(app.process_link)
bottle.route('/process/material', method="POST")(app.process_materials)
bottle.route('/process/material', method="POST")(app.process_material)

bottle.route('/convert/name/formula', method="POST")(app.name_to_formula)
bottle.route('/convert/formula/composition', method="POST")(app.formula_to_composition)
Expand Down

0 comments on commit b9adced

Please sign in to comment.