From 674b53a6946318233425c13a8665dc259c0c9f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= <git@praze.net> Date: Sun, 28 Jan 2024 16:13:21 +0000 Subject: [PATCH] Corrections --- .gitignore | 1 + 3DS.png | Bin 0 -> 3356 bytes games.py | 14 ++++---------- 3 files changed, 5 insertions(+), 10 deletions(-) create mode 100644 .gitignore create mode 100644 3DS.png 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 0000000000000000000000000000000000000000..b11d5a1fd882bbcaa889f133db1672b45ea308ab GIT binary patch literal 3356 zcmb7`=OYx3<Ht$PCYN<G&bmk_m#yp^+4Dojr<_e$cgC6LaB}u2BSINvWbYFRNpZ-? z%sTtbJ2T%t|H1F~;5{C_AG{yE;!TWnSr~a4si>$}^kCX%e-r+n=mCG-XED=)ii+CX zT}#Wv-N}iHN<0;j+VSYKI!|weH>Zvyt1?y*ZsJ=8W?U5K+%n_$pzX|pKq`mFQr^OR zIqmouS&I@Jqc5YX&>zrXaWpo!%`pKMI>abtCSx}zI5d0UN8!Vy2Y)8>#(t7Mes+s} zVs(|fzQmO`epsDDHkN4c-Js+oFmwiJcI0AmbQ<9}OK9~90bp`sbXoe2V)|mzJ@Lgs zkD5pOowH)tFiur`CdX#$Au$CUu9D{^lZK@ba7Bp66z{m_WPeNJZlq83YZ=~7qNzfB zPRtajd{!2<3rhtj#Tun@?jJMjOTk=@!nD-z?p9x%`sWKVl1aCf_IkCY^sUX`i?vEP z=BEu@JkQUUleJqHNYq+#y4FtC7?lsrj9xgnLyu1a?^6+D-bYya@uIjp?0$w&3d3lO zWZviCX<T!M5hVD`U@}K4sPT4?QdDE`T61jH7k#VFO}=@J5c~W!MkM8pBe_W?jK-0{ z^;0;s;KASj8GK+i{!~;<!2d)&G8=yWw^-_FYgh#R+Rj1YEUh_viL8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NOzJ6W5;l-jiPQwVDBfu~kha-@L%@x7}!k*d^Xyj2?i&cUb zF}oDJv}N+6cE;U{fs)yyY<}P{1Xu^V`Y>$>9ZqUq$TTn|vm?*thuij^hP_`F^Tf+| z0nbVE9pQ+A2UVX;1^TEP=@J#NDG?(JQW-I-DMh{K1vFodTSdFt)b_9QDXFbc1KyYq zzoa)ky89!w`)-mWK&6<Mr`eH?;;VI|)3~VbhTWwIrNf}#J(-ZD+N9;}-Wc3Vfl)MT zD3<Z1b^0W8ar;2hzGn-O%6q${lADQ<@d5U14Kqe^DDg;2;ts%Q^{q%_)@hW&?2D|c zCL~mc*Wr$nABvsABHk6JK>P1jYKaGN0CVW>hp@(-ag-hvPMdI%U@Et8i$7gCtvG{I zMtL*^zrF_JEQqVC<et%Ml%{{TRF1m9zny_0?t?n#Lqy6|*Bk3W#R=l4s~;>KSHY*U wx`mgDPRa(CeUk<E#QuMH`X9*tQQLKN#BVSQpsOwaQa6>Jj*)hi=D+Cw0k`ONrT_o{ literal 0 HcmV?d00001 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("<!DOCTYPE html>\n<html lang=\"en\" style=\"--active-base: #364563; --active-text: #FFFFFF; --active-text-50: #FFFFFF60; --active-text-25: #FFFFFF30; --active-secondary: #222a3a; --active-secondary-50: #222a3a80; --active-secondary-text: #FFFFFF; --active-secondary-text-50: #FFFFFF70; --active-secondary-text-25: #FFFFFF30; --active-accent: #00fffb; --active-accent-75: #00fffbc0; --active-accent-text: #000000DD; --beaten-color: hsla(0, 0%, 82%, 0.9); --completed-color: hsla(48, 80%, 82%, 0.9); --unplayed-color: hsla(200, 30%, 30%, 0.9); --unfinished-color: hsla(0, 38%, 35%, 0.9); --endless-color: hsla(275, 39%, 32%, 0.9); --platform-bw: none; --active-accent-shadow: #FFFFFF66; --retro-border: url('/img/border.png');\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <meta name=\"theme-color\" content=\"#424957\">\n <link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css?family=Lato|Teko|Titillium+Web\" rel=\"stylesheet\">\n <title>Selfhostery etc.</title>\n <link href=\"backloggery.css\" rel=\"stylesheet\">\n </head>\n <body>\n <div id=\"app\">\n <div class=\"profile\">\n <main>\n <section>\n <div class=\"tabs\">\n <a href=\"\" class=\"router-link-exact-active router-link-active\" aria-current=\"page\">Backlog</a>\n <a href=\"\" class=\"\">Library</a>\n <a href=\"\" class=\"\">History</a>\n </div>\n") +writeindex.write("<!DOCTYPE html>\n<html lang=\"en\" style=\"--active-base: #364563; --active-text: #FFFFFF; --active-text-50: #FFFFFF60; --active-text-25: #FFFFFF30; --active-secondary: #222a3a; --active-secondary-50: #222a3a80; --active-secondary-text: #FFFFFF; --active-secondary-text-50: #FFFFFF70; --active-secondary-text-25: #FFFFFF30; --active-accent: #00fffb; --active-accent-75: #00fffbc0; --active-accent-text: #000000DD; --beaten-color: hsla(0, 0%, 82%, 0.9); --completed-color: hsla(48, 80%, 82%, 0.9); --unplayed-color: hsla(200, 30%, 30%, 0.9); --unfinished-color: hsla(0, 38%, 35%, 0.9); --endless-color: hsla(275, 39%, 32%, 0.9); --platform-bw: none; --active-accent-shadow: #FFFFFF66; --retro-border: url('/img/border.png');\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <meta name=\"theme-color\" content=\"#424957\">\n <link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css?family=Lato|Teko|Titillium+Web\" rel=\"stylesheet\">\n <title>Selfhostery etc.</title>\n <link href=\"backloggery.css\" rel=\"stylesheet\">\n </head>\n <body>\n <div id=\"app\">\n <div class=\"profile\">\n <main>\n <section>\n <div class=\"tabs\">\n <a href=\"\" class=\"router-link-exact-active router-link-active\" aria-current=\"page\">Backlog</a>\n <a href=\"library.html\" class=\"\">Library</a>\n <a href=\"\" class=\"\">History</a>\n </div>\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(" </div>\n </div>\n </se # LIBRARY -writelibrary.write("<!DOCTYPE html>\n<html lang=\"en\" style=\"--active-base: #364563; --active-text: #FFFFFF; --active-text-50: #FFFFFF60; --active-text-25: #FFFFFF30; --active-secondary: #222a3a; --active-secondary-50: #222a3a80; --active-secondary-text: #FFFFFF; --active-secondary-text-50: #FFFFFF70; --active-secondary-text-25: #FFFFFF30; --active-accent: #00fffb; --active-accent-75: #00fffbc0; --active-accent-text: #000000DD; --beaten-color: hsla(0, 0%, 82%, 0.9); --completed-color: hsla(48, 80%, 82%, 0.9); --unplayed-color: hsla(200, 30%, 30%, 0.9); --unfinished-color: hsla(0, 38%, 35%, 0.9); --endless-color: hsla(275, 39%, 32%, 0.9); --platform-bw: none; --active-accent-shadow: #FFFFFF66; --retro-border: url('/img/border.png');\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <meta name=\"theme-color\" content=\"#424957\">\n <link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css?family=Lato|Teko|Titillium+Web\" rel=\"stylesheet\">\n <title>Selfhostery etc.</title>\n <link href=\"backloggery.css\" rel=\"stylesheet\">\n </head>\n <body>\n <div id=\"app\">\n <div class=\"profile\">\n <main>\n <section>\n <div class=\"tabs\">\n <a href=\"\" class=\"\">Backlog</a>\n <a href=\"\" class=\"router-link-exact-active router-link-active\" style=\"\" aria-current=\"page\">Library</a>\n <a href=\"https://backloggery.club/demo/history\" class=\"\">History</a>\n </div>\n <section id=\"library-top\" class=\"library\">\n <div>\n <div class=\"unibar\">\n <div>\n <span>Total Found</span> " + str(total) + "\n </div>\n") +writelibrary.write("<!DOCTYPE html>\n<html lang=\"en\" style=\"--active-base: #364563; --active-text: #FFFFFF; --active-text-50: #FFFFFF60; --active-text-25: #FFFFFF30; --active-secondary: #222a3a; --active-secondary-50: #222a3a80; --active-secondary-text: #FFFFFF; --active-secondary-text-50: #FFFFFF70; --active-secondary-text-25: #FFFFFF30; --active-accent: #00fffb; --active-accent-75: #00fffbc0; --active-accent-text: #000000DD; --beaten-color: hsla(0, 0%, 82%, 0.9); --completed-color: hsla(48, 80%, 82%, 0.9); --unplayed-color: hsla(200, 30%, 30%, 0.9); --unfinished-color: hsla(0, 38%, 35%, 0.9); --endless-color: hsla(275, 39%, 32%, 0.9); --platform-bw: none; --active-accent-shadow: #FFFFFF66; --retro-border: url('/img/border.png');\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <meta name=\"theme-color\" content=\"#424957\">\n <link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\">\n <link href=\"https://fonts.googleapis.com/css?family=Lato|Teko|Titillium+Web\" rel=\"stylesheet\">\n <title>Selfhostery etc.</title>\n <link href=\"backloggery.css\" rel=\"stylesheet\">\n </head>\n <body>\n <div id=\"app\">\n <div class=\"profile\">\n <main>\n <section>\n <div class=\"tabs\">\n <a href=\"backlog.html\" class=\"\">Backlog</a>\n <a href=\"\" class=\"router-link-exact-active router-link-active\" style=\"\" aria-current=\"page\">Library</a>\n <a href=\"\" class=\"\">History</a>\n </div>\n <section id=\"library-top\" class=\"library\">\n <div>\n <div class=\"unibar\">\n <div>\n <span>Total Found</span> " + str(total) + "\n </div>\n") if unplayed > 0: writelibrary.write(" <div class=\"unplayed\" style=\"flex: " + str(unplayed) + " 1 0%;\">" + str(unplayed) + "</div>\n") if unfinished > 0: