black autoformatting
This commit is contained in:
parent
452bf73b84
commit
4a2e6f76ca
@ -140,7 +140,6 @@ class CsvParser:
|
||||
fieldsofinterest[row["Id"]] = fields
|
||||
return fieldsofinterest
|
||||
|
||||
|
||||
def getfullpublication(self, pubid):
|
||||
"""For the single book view, most complete overview"""
|
||||
libcsv = open(os.path.join(DATA_DIR, self.csv_file), "r")
|
||||
|
@ -1,8 +1,13 @@
|
||||
"""Form object declaration."""
|
||||
from flask_wtf import FlaskForm
|
||||
from flask_wtf.file import FileAllowed, FileField
|
||||
from wtforms import (IntegerField, RadioField, StringField, SubmitField,
|
||||
validators)
|
||||
from wtforms import (
|
||||
IntegerField,
|
||||
RadioField,
|
||||
StringField,
|
||||
SubmitField,
|
||||
validators,
|
||||
)
|
||||
from wtforms.validators import Length, NumberRange
|
||||
|
||||
|
||||
@ -33,7 +38,7 @@ class PublicationForm(FlaskForm):
|
||||
year = IntegerField(
|
||||
"Year:",
|
||||
[validators.InputRequired(), NumberRange(min=0, max=2050)],
|
||||
default=2023
|
||||
default=2023,
|
||||
)
|
||||
fields = StringField("Fields:")
|
||||
type = StringField(
|
||||
|
@ -28,6 +28,7 @@ csvparser = CsvParser(
|
||||
APP.config["LIBRARY_FILENAME"], APP.config["IMAGE_FOLDER"]
|
||||
)
|
||||
|
||||
|
||||
@APP.route("/")
|
||||
def index():
|
||||
"""Main route, shows all the books and you can filter them
|
||||
|
@ -1,6 +1,7 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
font-family: libreBaskerville, serif;
|
||||
font-family: "libreBaskerville";
|
||||
font-style: normal;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
@ -23,7 +24,7 @@ body:after {
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: libreBaskerville;
|
||||
font-family: "libreBaskerville";
|
||||
src: url(../fonts/LibreBaskerville-Regular.otf);
|
||||
}
|
||||
|
||||
@ -137,6 +138,7 @@ table {
|
||||
background-color: #f1f1f1;
|
||||
border-spacing: 0;
|
||||
}
|
||||
tbody:hover {background-color: #ddd;}
|
||||
|
||||
tr {
|
||||
margin: 0;
|
||||
|
@ -1,8 +1,8 @@
|
||||
{% extends "base.html" %}
|
||||
{% block main %}
|
||||
<div id="nav" class="container">
|
||||
<nav id="nav" class="container">
|
||||
{% include 'menu.html' %}
|
||||
</div>
|
||||
</nav>
|
||||
<div id="bookshelf">
|
||||
{% for id, pubinfo in publications.items() %}
|
||||
<div id="{{ id }}" class='book filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }} {{ pubinfo["License"] }}'>
|
||||
@ -17,11 +17,11 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>Author/Editor</td>
|
||||
<td class="author">Author/Editor:</td>
|
||||
<td>{{ pubinfo["Author"] }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title</td>
|
||||
<td class="title">Title:</td>
|
||||
<td>{{ pubinfo["Title"] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user