diff --git a/games.py b/games.py
index f4f0036..8d31193 100644
--- a/games.py
+++ b/games.py
@@ -19,7 +19,7 @@ year = 2016
concernedfiles = []
-endlessgames = ["the sims 4 (pc)","american truck simulator (pc)","civilization iv (pc)","final fantasy xiv (pc)","medieval ii: total war (pc)","tabletop simulator (pc)","train simulator 2020 (pc)"]
+endlessgames = ["the sims 4 (pc)","american truck simulator (pc)","civilization iv (pc)","final fantasy xiv (pc)","medieval ii: total war (pc)","tabletop simulator (pc)","train simulator 2020 (pc)","theatrhythm curtain call (nintendo 3ds)"]
while year < int(thisyear) + 1:
month = 0
@@ -141,7 +141,7 @@ def nowplaying(consolelist):
if len(consolelist) > 0:
thegame = consolelist[-1]
try:
- if thegame["gameplay"]:
+ if thegame["gameplay"] > (datetime.now() - timedelta(days=180)):
try:
if thegame["completed"]:
if thegame["completed"] > thegame["gameplay"]:
@@ -312,26 +312,86 @@ if endless > 0:
yeargames = 0
yearplaying = 0
for game in games:
- if int(game["initialdate"].year) == int(thisyear):
+ if game["initialdate"].year == int(thisyear):
+ try:
+ if game["gameplay"]:
+ if game["id"] not in endlessgames:
+ yeargames += 1
+ except:
+ yeargames += 1
+for game in games:
+ try:
+ if game["beaten"].year == int(thisyear):
+ yeargames -= 1
+ except:
+ try:
+ if game["completed"].year == int(thisyear):
+ yeargames -= 1
+ except:
+ pass
+
+writeindex.write(" \n \n
\n \n
\n \n \n
\n \n \n
\n
\n Active Backlog · " + str(backlog) + " · " + str(round(((backlog/total)*100),1)) + "%\n
\n
\n
\n
\n")
compare = []
@@ -398,7 +458,7 @@ def liststats(title,abbr,consolelist):
unfinished += 1
except:
pass
- unplayed = total - (completed + beaten + unfinished)
+ unplayed = total - (completed + beaten + unfinished + endless)
if unplayed > 0:
writeindex.write("
" + str(unplayed) + "\n")
if unfinished > 0: