clean up format and zip file names
This commit is contained in:
parent
e55def10ae
commit
8f48786a54
5
app.py
5
app.py
@ -32,7 +32,8 @@ def index():
|
|||||||
bible_id = {
|
bible_id = {
|
||||||
'NRSV': 'nrsv',
|
'NRSV': 'nrsv',
|
||||||
'NIV': 'niv',
|
'NIV': 'niv',
|
||||||
'NLT': 'nlt'
|
'NLT': 'nlt',
|
||||||
|
'MSG': 'msg'
|
||||||
}.get(version)
|
}.get(version)
|
||||||
filenameref = reference.replace(' ', '_').replace(':', '_')
|
filenameref = reference.replace(' ', '_').replace(':', '_')
|
||||||
|
|
||||||
@ -90,7 +91,7 @@ def index():
|
|||||||
|
|
||||||
# You can now send png_bytes to a response or store it in a DB
|
# You can now send png_bytes to a response or store it in a DB
|
||||||
print(f"Page {page_index} is {len(png_bytes)} bytes.")
|
print(f"Page {page_index} is {len(png_bytes)} bytes.")
|
||||||
zf.writestr("{}/{}-slide-number-{:02d}.png".format(filenameref, filenameref, page_index), png_bytes)
|
zf.writestr("{}-{}/{}-slide-number-{:02d}.png".format(filenameref, version, filenameref, page_index), png_bytes)
|
||||||
|
|
||||||
doc.close()
|
doc.close()
|
||||||
|
|
||||||
|
|||||||
@ -342,10 +342,11 @@
|
|||||||
.text-html h3 {
|
.text-html h3 {
|
||||||
/* color: #676767; */
|
/* color: #676767; */
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
font-family: "Times New Roman", Times, serif;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 2.0rem;
|
font-size: 30px;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
.text-html h4 {
|
.text-html h4 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user