fixed the web front

Sat, 01 Jun 2019 10:48:03 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 01 Jun 2019 10:48:03 +0300
changeset 57
c147116768f4
parent 56
ed6d39c59e56
child 58
86014c443635

fixed the web front

webfront.py file | annotate | diff | comparison | revisions
--- 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