From fc81853bc170ffc106f5081f9bbbe9294bcf779d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Fri, 1 Nov 2024 13:53:54 +0000 Subject: [PATCH] Add trading page --- collectinggen.py | 3 ++- skel.py | 7 ++++++- tcgcore.py | 29 ++++++++++++++++++++++------- tradegen.py | 22 ++++++++++++++++++++++ variables-template.py | 1 + wantedgen.py | 3 ++- 6 files changed, 55 insertions(+), 10 deletions(-) create mode 100644 tradegen.py diff --git a/collectinggen.py b/collectinggen.py index 057dad4..b855f30 100644 --- a/collectinggen.py +++ b/collectinggen.py @@ -24,7 +24,8 @@ def collectinggen(): elif deck in variables.medpriority: medpriority.append(deck) else: - lowpriority.append(deck) + if tcgcore.collecting(deck): + lowpriority.append(deck) if len(highpriority) > 0: content.write("

High priority

\n") for deck in highpriority: diff --git a/skel.py b/skel.py index 57eb4f7..7a5a0af 100644 --- a/skel.py +++ b/skel.py @@ -2,7 +2,7 @@ import variables def headerwrite(thefile,pagename): header = open(thefile,"a") - header.write("\n\n \n \n \n \n \n " + variables.name + "’s TCG collection :: " + pagename + "\n \n \n \n