<%inherit file="base.html"/> <%! import os import mylar from mylar import helpers, db %> <%def name="headerIncludes()">
Sync Remove Read Force New Check Clear File Cache Import Story Arc File
<%def name="body()">

Reading ListReading List Management

Individual Reading Lists (Watchlist)

Your watchlisted series' that you have issues marked as wanting to add to the Reading List go here.

%for issue in issuelist: %endfor
ComicName Issue Issue Date Status Options
${issue['ComicName']} (${issue['SeriesYear']}) ${issue['Issue_Number']} ${issue['IssueDate']} ${issue['Status']} %if issue['inCacheDIR']: <% try: with open(os.path.join(mylar.CACHE_DIR,issue['Location'])) as f: linky = issue['Location'] except IOError as e: linky = None %> %if linky: %endif %else: %endif




%for item in readlist: <% myDB = db.DBConnection() totalcnt = myDB.action("SELECT COUNT(*) as count FROM readinglist WHERE StoryArcID=?", [item['StoryArcID']]).fetchall() totalarc = totalcnt[0][0] havecnt = myDB.action("SELECT COUNT(*) as count FROM readinglist WHERE StoryArcID=? AND Status='Downloaded' or Status='Archived'", [item['StoryArcID']]).fetchall() havearc = havecnt[0][0] if not havearc: havearc = 0 try: percent = (havearc *100.0)/totalarc if percent > 100: percent = 100 except (ZeroDivisionError, TypeError): percent = 0 totalarc = '?' %> %endfor
Story Arc Issues Status Options
${item['StoryArc']} ${item['TotalIssues']}
${havearc}/${totalarc}
<%def name="headIncludes()"> <%def name="javascriptIncludes()">