WebHost: optimize imports

This commit is contained in:
Fabian Dill
2022-10-17 01:08:31 +02:00
committed by Fabian Dill
parent acf7fda26a
commit bb46ee7fc1
17 changed files with 61 additions and 55 deletions

View File

@@ -1,7 +1,11 @@
from datetime import timedelta, datetime
from flask import render_template
from pony.orm import count
from WebHostLib import app, cache
from .models import *
from datetime import timedelta
from .models import Room, Seed
@app.route('/', methods=['GET', 'POST'])
@cache.cached(timeout=300) # cache has to appear under app route for caching to work