first pass of import logging, its not being used, data is in real tables, but faked. will probably have to switch to gunicorn and threading to allow import and serving pages when we use slower AI routines
This commit is contained in:
@@ -7,7 +7,7 @@ from sqlalchemy.exc import SQLAlchemyError
|
||||
from status import st, Status
|
||||
|
||||
################################################################################
|
||||
# Class describing Author in the database, and via sqlalchemy, connected to the DB as well
|
||||
# Class describing Settings in the database, and via sqlalchemy, connected to the DB as well
|
||||
################################################################################
|
||||
class Settings(db.Model):
|
||||
id = db.Column(db.Integer, db.Sequence('settings_id_seq'), primary_key=True )
|
||||
@@ -18,7 +18,7 @@ class Settings(db.Model):
|
||||
return "<id: {}, import_path: {}, last_import_date: {}>".format(self.id, self.import_path, self.last_import_date)
|
||||
|
||||
################################################################################
|
||||
# Helper class that inherits a .dump() method to turn class Author into json / useful in jinja2
|
||||
# Helper class that inherits a .dump() method to turn class Settings into json / useful in jinja2
|
||||
################################################################################
|
||||
class SettingsSchema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user