added BUGS, TODO and README, and first class settings
This commit is contained in:
1
README
Normal file
1
README
Normal file
@@ -0,0 +1 @@
|
|||||||
|
In here we can put instructions on how to run this / any general info
|
||||||
17
TODO
Normal file
17
TODO
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
### DB
|
||||||
|
* create tables
|
||||||
|
|
||||||
|
### BACKEND
|
||||||
|
* probably need a "batch" processing system that uses ionice to minimise load on mara
|
||||||
|
|
||||||
|
### UI
|
||||||
|
* basic browse a
|
||||||
|
|
||||||
|
### AI
|
||||||
|
* store reference images
|
||||||
|
* check images
|
||||||
|
|
||||||
|
### SORTER
|
||||||
|
* date stuff
|
||||||
|
* exif processing?
|
||||||
|
* location stuff
|
||||||
18
settings.py
Normal file
18
settings.py
Normal 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)
|
||||||
Reference in New Issue
Block a user