Add demo org file
This commit is contained in:
parent
3b5cb360d5
commit
4176cb113f
2 changed files with 14 additions and 26 deletions
26
gamesort.py
26
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue