Browse Source

just commit until it works

main
crunk 5 days ago
parent
commit
5ce4a0f4b3
  1. 2
      verse/admin_page/admin_page.py
  2. 2
      verse/describer/forms/describe_files_form.py
  3. 2
      verse/describer/templates/describe_files/describe.html
  4. 2
      verse/distribusikan/add_files_to_describer.py
  5. 1
      verse/distribusikan/forms/uploadform.py
  6. 4
      verse/search/forms/searchform.py
  7. 1
      verse/search/search_index.py
  8. 2
      verse/start.py

2
verse/admin_page/admin_page.py

@ -2,7 +2,7 @@ import os
import shutil
from flask import render_template, Blueprint
from flask_login import current_user, login_required
from flask_login import login_required
from sqlalchemy.exc import (
DatabaseError,
DataError,

2
verse/describer/forms/describe_files_form.py

@ -1,7 +1,7 @@
"""Describe File Form to describe files in the distribusi archive"""
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, validators
from wtforms import StringField, SubmitField
from wtforms.validators import Length
from wtforms.widgets import TextArea

2
verse/describer/templates/describe_files/describe.html

@ -31,7 +31,7 @@
{% for id, describe_form in distribusi_file_forms.items() %}
<div class="distribusi_file">
{% if describe_form.type == "image" %}
<img src="{{ url_for('shortstashurl')}}/{{describe_form.file_path}}" alt="" data-src="{{ url_for('shortstashurl')}}/{{describe_form.file_path}}" loading="lazy"/>
<img src="{{ url_for('shortstashurl')}}/{{describe_form.file_paths}}" alt="" data-src="{{ url_for('shortstashurl')}}/{{describe_form.file_path}}" loading="lazy"/>
{% elif describe_form.type == "video" %}
<video src="{{ url_for('shortstashurl')}}/{{describe_form.file_path}}" preload="auto" alt="" controls loading="lazy"></video>
{% elif describe_form.type == "audio" %}

2
verse/distribusikan/add_files_to_describer.py

@ -4,7 +4,7 @@ import magic
from distribusi.mappings import FILE_TYPES
from models.distribusi_model import Distribusis
from models.distribusi_file_model import DistribusiFiles
from app import create_app, get_app, db
from app import get_app, db
from sqlalchemy.exc import (
DatabaseError,
DataError,

1
verse/distribusikan/forms/uploadform.py

@ -4,7 +4,6 @@ from wtforms import (
SelectField,
StringField,
SubmitField,
TextAreaField,
validators,
)
from wtforms.validators import (

4
verse/search/forms/searchform.py

@ -1,9 +1,7 @@
"""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
from wtforms import StringField, SubmitField
class SearchForm(FlaskForm):

1
verse/search/search_index.py

@ -1,7 +1,6 @@
import os
from whoosh.fields import *
from whoosh.index import create_in, open_dir
from whoosh.qparser import QueryParser
from models.distribusi_model import Distribusis
from models.distribusi_file_model import DistribusiFiles
import flask_apscheduler

2
verse/start.py

@ -10,7 +10,7 @@ from flask import (
session,
url_for,
)
from flask_login import current_user, login_required, logout_user
from flask_login import login_required, logout_user
from flask_wtf.csrf import CSRFError
from admin import is_adminuser

Loading…
Cancel
Save