added BUGS, TODO and README, and first class settings

This commit is contained in:
2021-01-10 13:14:49 +11:00
parent 0bbed0ced5
commit 53897a1351
4 changed files with 38 additions and 0 deletions

18
settings.py Normal file
View File

@@ -0,0 +1,18 @@
from wtforms import SubmitField, StringField, HiddenField, validators, Form
from flask_wtf import FlaskForm
from flask import request, render_template, redirect
from main import db, app, ma
from sqlalchemy import Sequence
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 Settings(db.Model):
id = db.Column(db.Integer, db.Sequence('fs_id_seq'), primary_key=True )
name = db.Column(db.String, unique=True, nullable=True )
value = db.Column(db.String, unique=True, nullable=True )
def __repr__(self):
return "<id: {}, name: {}, value: {}>".format(self.id, self.name, self.value)