Skip to content

Commit

Permalink
Specify maxsize for lru_cache to support Python under 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jertzukka committed Oct 17, 2023
1 parent 0b1cacf commit e454031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def access_file(self):
self.setRunning(False)


@lru_cache
@lru_cache(maxsize=128)
def getcarddatabyid(self, id):
t = (id,)
apkc.execute('SELECT scryfall_id FROM cards WHERE _id=?', t)
Expand Down Expand Up @@ -229,9 +229,9 @@ def startexport(self):
file.write(f'Count,Tradelist Count,Name,Edition,Card Number,Condition,Language,Foil,Signed,Artist Proof,Altered Art,Misprint,Promo,Textless,My Price\n')
for iteration, each in enumerate(cardstoimport):
if iteration == 0:
self.textEdit.append(f"Preparing files, this might take a bit..")
self.textEdit.append(f"Preparing files, this might take a bit...")
QtWidgets.QApplication.processEvents()
print("Preparing files, this might take a bit..")
print("Preparing files, this might take a bit...")
self.access_file()
if not self.getRunning():
break
Expand Down

0 comments on commit e454031

Please sign in to comment.