old_contents: from flask import g, render_template
  from C4GD_web import app
  from C4GD_web.models import *
  from decorators import login_required
  
  
  @app.route('/')
  @login_required
  def dashboard():
      total_users = g.store.find(User).count()
      total_projects = g.store.execute('select count(distinct(tenant_id)) from user_roles').get_one()[0]
      return render_template(
          'dashboard.haml',
          total_users=total_users, total_projects=total_projects)
  
new_contents: from flask import g, render_template
  from C4GD_web import app
  from C4GD_web.models import *
  from C4GD_web.decorators import login_required
  
  
  @app.route('/')
  @login_required
  def dashboard():
      total_users = g.store.find(User).count()
      total_projects = g.store.execute('select count(distinct(tenant_id)) from user_roles').get_one()[0]
      return render_template(
          'dashboard.haml',
          total_users=total_users, total_projects=total_projects)
  
subject: fix imports