Permalink
Browse files

minor fixes (model, db)

  • Loading branch information...
1 parent 9e40fd7 commit 706cc33357faa390728546e0000188d4dc4c7b82 @Stiivi committed Jul 3, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 procurements/flask_app.py
@@ -12,7 +12,7 @@
MODEL_PATH = os.path.join(APP_ROOT, "vvo_model.json")
DB_PATH = os.path.join(APP_ROOT, "vvo_data.sqlite")
-DB_URL = "sqlite://" + DB_PATH
+DB_URL = "sqlite:///" + DB_PATH
CUBE_NAME = "contracts"
@@ -29,7 +29,7 @@ def report(dim_name=None):
browser = get_browser()
if not dim_name:
- return render_template('report.html', dimensions=model.dimensions)
+ return render_template('report.html', dimensions=g.model.dimensions)
# First we need to get the hierarchy to know the order of levels. Cubes
# supports multiple hierarchies internally.
@@ -116,5 +116,4 @@ def get_browser():
if __name__ == "__main__":
app.debug = True
- initialize_model()
app.run()

0 comments on commit 706cc33

Please sign in to comment.