@ -1,5 +1,6 @@
import os
import json
import flask_apscheduler
import tomli
from flask import Flask
@ -1,7 +1,8 @@
import random
from datetime import datetime
from time import mktime
from parse_rss_feeds import parse_rss_feeds
@ -1,6 +1,7 @@
from feedparser import parse
def parse_single_rss_feed(url, entries):
feed = parse(url)
@ -1,8 +1,8 @@
from column import Column
with open("columns.toml", "rb") as f:
column_dict = tomli.load(f)
columns_file = column_dict["column"]
@ -1,8 +1,9 @@
from json import dumps, loads
from logging import DEBUG, INFO, basicConfig, getLogger
from os import environ, mkdir
from os.path import exists
from pathlib import Path
class SimpleJsonStorage(dict):
"""A simple json file.
@ -1,10 +1,12 @@
from flask import render_template
from simplejsonstorage import SimpleJsonStorage
from app import create_app
APP = create_app()
@ -27,6 +29,7 @@ def load_json_file():
)
return json_file
if __name__ == "__main__":
APP.debug = True
APP.run(port=5000)