Compare commits
No commits in common. "2584ec7c1401cfe8242e0173a181ac320a83cf5c" and "b1c6a289fa9b5a8fd4a1a6898c19fe24dc5aedb3" have entirely different histories.
2584ec7c14
...
b1c6a289fa
@ -228,7 +228,6 @@ else:
|
|||||||
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
||||||
for item in returnlist:
|
for item in returnlist:
|
||||||
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
||||||
returntable += tableend
|
|
||||||
returnlist = [d for d in allbooks if (d.renewalcount == 2)]
|
returnlist = [d for d in allbooks if (d.renewalcount == 2)]
|
||||||
if len(returnlist) == 0:
|
if len(returnlist) == 0:
|
||||||
pass
|
pass
|
||||||
@ -244,7 +243,6 @@ else:
|
|||||||
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
||||||
for item in returnlist:
|
for item in returnlist:
|
||||||
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
||||||
returntable += tableend
|
|
||||||
returnlist = [d for d in allbooks if (d.renewalcount == 1)]
|
returnlist = [d for d in allbooks if (d.renewalcount == 1)]
|
||||||
if len(returnlist) == 0:
|
if len(returnlist) == 0:
|
||||||
pass
|
pass
|
||||||
@ -260,7 +258,6 @@ else:
|
|||||||
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
||||||
for item in returnlist:
|
for item in returnlist:
|
||||||
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
||||||
returntable += tableend
|
|
||||||
returnlist = [d for d in allbooks if (d.renewalcount == 0)]
|
returnlist = [d for d in allbooks if (d.renewalcount == 0)]
|
||||||
if len(returnlist) == 0:
|
if len(returnlist) == 0:
|
||||||
pass
|
pass
|
||||||
@ -276,7 +273,6 @@ else:
|
|||||||
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
returntable += tablestart + "<colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup><tr><th>Name"+th+"Type"+th+"Times Renewed"+th+"Checked Out"+th+"Due Date"+th+"Title" + th + "ISBN" + th + "Thumbnail</th></tr>"
|
||||||
for item in returnlist:
|
for item in returnlist:
|
||||||
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
returntable += "<TR><TD>" + item.person + td + item.materialtype + td + str(item.renewalcount) + td + str(item.checkoutdate) + td + str(item.duedate) + td + item.title + td + item.isbn + td +'<img src="'+ item.coverurl+'">' +"</td></tr>\n"
|
||||||
returntable += tableend
|
|
||||||
with open("/var/www/html/returnlist.html","w",encoding='utf-8') as outhtml:
|
with open("/var/www/html/returnlist.html","w",encoding='utf-8') as outhtml:
|
||||||
outhtml.write(returntable)
|
outhtml.write(returntable)
|
||||||
htmltable = returntable
|
htmltable = returntable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user