start of search

This commit is contained in:
crunk 2024-06-06 19:42:06 +02:00
parent 4425888116
commit 681c34e05e
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
"""SearchForm to search files and distribusis in the distribusi archive"""
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, validators
from wtforms.validators import Length
from wtforms.widgets import TextArea

8
verse/search/search.py Normal file
View File

@ -0,0 +1,8 @@
import os
from whoosh.fields import *
from whoosh.index import open_dir
from whoosh.qparser import QueryParser
SCRIPT_DIR = os.path.dirname(__file__)
DATA_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "../data"))

View File

@ -0,0 +1,3 @@
{% extends "base/base.html" %}
{% block main %}
{% endblock %}