diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b84df0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.html \ No newline at end of file diff --git a/3DS.png b/3DS.png new file mode 100644 index 0000000..b11d5a1 Binary files /dev/null and b/3DS.png differ diff --git a/games.py b/games.py index 4f44a91..f4f0036 100644 --- a/games.py +++ b/games.py @@ -129,7 +129,7 @@ for game in games: if game["console"] == "nintendo 3ds": threedslist.append(game) -writeindex.write("\n\n \n \n \n \n \n \n Selfhostery etc.\n \n \n \n
\n
\n
\n
\n \n") +writeindex.write("\n\n \n \n \n \n \n \n Selfhostery etc.\n \n \n \n
\n
\n
\n
\n \n") # NOW PLAYING @@ -148,7 +148,6 @@ def nowplaying(consolelist): playing = False else: playing = True - state = "completed" except: try: if thegame["beaten"]: @@ -156,15 +155,10 @@ def nowplaying(consolelist): playing = False else: playing = True - state = "beaten" except: playing = True - if thegame["id"] in endlessgames: - state = "endless" - else: - state = "playing" if playing: - playingnow.append({"console":thegame["console"],"name":thegame["name"],"date":thegame["gameplay"],"state":state,"recent":thegame["recent"],"gameplay":thegame["gameplay"],"id":thegame["id"]}) + playingnow.append(thegame) except: pass @@ -177,7 +171,7 @@ nowplaying(ps3list) nowplaying(ps5list) nowplaying(xbox360list) -playingnow = sorted(playingnow,key=lambda d: d["date"],reverse=True) +playingnow = sorted(playingnow,key=lambda d: d["lastupdate"],reverse=True) decay = False @@ -430,7 +424,7 @@ writeindex.write("
\n
\n \n\n \n \n \n \n \n \n Selfhostery etc.\n \n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n Total Found " + str(total) + "\n
\n") +writelibrary.write("\n\n \n \n \n \n \n \n Selfhostery etc.\n \n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n Total Found " + str(total) + "\n
\n") if unplayed > 0: writelibrary.write("
" + str(unplayed) + "
\n") if unfinished > 0: