<commit_before>from flask.ext.appbuilder.baseapp import BaseApp
from flask.ext.appbuilder.models.datamodel import SQLAModel
from flask.ext.appbuilder.views import GeneralView
from app.models import Project, ProjectFiles
from app import app, db


class ProjectGeneralView(GeneralView):
    datamodel = SQLAModel(Project, db.session)
    related_views = []    

    list_columns = ['name','created_by', 'created_on', 'changed_by','changed_on']
    show_columns = ['name','created_by', 'created_on', 'changed_by','changed_on']
    order_columns = ['name']
    search_columns = ['name', 'created_by']

baseapp = BaseApp(app, db)
baseapp.add_view(ProjectGeneralView(), "List Projects",icon = "th-large",category = "Projects")<commit_msg>Update views.py<commit_after>from flask.ext.appbuilder.baseapp import BaseApp
from flask.ext.appbuilder.models.datamodel import SQLAModel
from flask.ext.appbuilder.views import GeneralView
from app.models import Project, ProjectFiles
from flask.ext.appbuilder import Base
from app import app, db


class ProjectGeneralView(GeneralView):
    datamodel = SQLAModel(Project, db.session)
    related_views = []    

    list_columns = ['name','created_by', 'created_on', 'changed_by','changed_on']
    show_columns = ['name','created_by', 'created_on', 'changed_by','changed_on']
    order_columns = ['name']
    search_columns = ['name', 'created_by']

baseapp = BaseApp(app, db)
baseapp.add_view(ProjectGeneralView(), "List Projects",icon = "th-large",category = "Projects")
print Base.metadata.tables.keys()
{'fraction_non_alphanumeric': 0.12873862158647595, 'fraction_numerical': 0.0, 'mean_word_length': 5.9324324324324325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2864564', 'n_tokens_mistral': 483, 'n_tokens_neox': 465, 'n_words': 104}