From 4176cb113f917de5318b52b55993142bb1f488e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sun, 18 Feb 2024 22:48:26 +0000 Subject: [PATCH] Add demo org file --- demo.org | 14 ++++++++++++++ gamesort.py | 26 -------------------------- 2 files changed, 14 insertions(+), 26 deletions(-) create mode 100644 demo.org diff --git a/demo.org b/demo.org new file mode 100644 index 0000000..17172c5 --- /dev/null +++ b/demo.org @@ -0,0 +1,14 @@ +<2024-02-17 Sat> + +* note +Files should be stored in a tree and named like so: =YYYY/MM/YYYY-MM-DD.org=. +* games +** acquired +*** demo game 1 (ps2) +** gameplay +*** demo game 2 (pc) +Notes about the games can be stored under each heading. +** beaten +*** demo game 3 (pc) +** completed +*** demo game 4 (nintendo ds) diff --git a/gamesort.py b/gamesort.py index 16bdb8c..d7dfa29 100644 --- a/gamesort.py +++ b/gamesort.py @@ -6,7 +6,6 @@ from datetime import datetime Load in the list of games from a set of .org files. """ -home = str(Path.home()) thisyear = datetime.now().strftime("%Y") year = 2016 @@ -158,30 +157,5 @@ def unplayed(selection): unplayed = total(selection) - (completed(selection) + beaten(selection) + unfinished(selection) + endless(selection)) return(unplayed) -# completed = 0 -# beaten = 0 -# endless = 0 -# unfinished = 0 -# total = len(games) -# if total > 0: -# for game in games: -# try: -# if game["completed"]: -# completed += 1 -# except: -# try: -# if game["beaten"]: -# beaten += 1 -# except: -# try: -# if game["gameplay"]: -# if game["id"] in variables.endlessgames: -# endless += 1 -# else: -# unfinished += 1 -# except: -# pass -# unplayed = total - (completed + beaten + unfinished + endless) - if __name__ == "__main__": print(endless(games))