From 564adde040e90be7014bbcd093e93b045cb58650 Mon Sep 17 00:00:00 2001 From: "Dominik V. Salonen" Date: Mon, 18 Jan 2016 10:33:47 +0100 Subject: [PATCH] Added TODOs --- Hyozan/db.py | 2 ++ Hyozan/output.py | 1 + run.py | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Hyozan/db.py b/Hyozan/db.py index 0ccab49..433b874 100644 --- a/Hyozan/db.py +++ b/Hyozan/db.py @@ -1,6 +1,8 @@ import sqlite3 import time +# TODO: (Hopefully) add support for DB types other than SQLite + def connect(target): return sqlite3.connect(target) diff --git a/Hyozan/output.py b/Hyozan/output.py index 426f987..27a9c0e 100644 --- a/Hyozan/output.py +++ b/Hyozan/output.py @@ -1,6 +1,7 @@ from datetime import datetime import time +# TODO: I dunno, but there's gotta be a better way to do this crap def print_log(source, message): if source == "Main": print('\033[92m' + source + ': \033[0m' + message) diff --git a/run.py b/run.py index 1444f78..13026ed 100755 --- a/run.py +++ b/run.py @@ -19,7 +19,7 @@ from Hyozan.output import print_log, time_to_string app = Flask(__name__) -# Pre-start functions +# TODO: Try to turn these into functions or something I dunno print_log('Main', 'Running in "' + os.getcwd() + '"') print_log('Main', 'Checking for data folder') if not os.path.exists(config['UPLOAD_FOLDER']): @@ -30,7 +30,7 @@ log.setLevel(logging.ERROR) def cleaner_thread(): - # This is horrid + # TODO: Make this into a less shitty timer while True: print_log('Notice', 'Cleaner started') delete_old()