webfront.py

changeset 57
c147116768f4
parent 32
75f44d3063da
child 61
15c95d3fcfd8
--- a/webfront.py	Sat Jun 01 10:47:58 2019 +0300
+++ b/webfront.py	Sat Jun 01 10:48:03 2019 +0300
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 from flask import Flask, render_template, redirect, request
 from ldcheck import load_config, load_colours, find_ldconfig_ldr_paths
-from ldcheck import read_ldraw
+from parse import read_ldraw
 from testsuite import load_tests, check_model, problem_text
 
 app = Flask('LDCheck')
@@ -20,7 +20,7 @@
         model = read_ldraw(
             file.stream,
             name = file.filename,
-            config = config,
+            ldraw_directories = config['libraries'],
         )
         test_suite = load_tests()
         report = check_model(model, test_suite)

mercurial