Patching RefactorBatch issue with new method

pull/46/head
Torrin Leonard 2022-01-08 20:33:25 -05:00
rodzic 763246d145
commit c67e420aa3
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -21,15 +21,16 @@ from src.Main_Generators import metaData
importlib.reload(config)
importlib.reload(metaData)
removeList = [".gitignore", ".DS_Store"]
def getNFType():
images = False
animations = False
models = False
metaData = False
batchContent = os.listdir(os.path.join(config.nft_save_path, (os.listdir(config.nft_save_path)[0])))
removeList = [".gitignore", ".DS_Store"]
batch1 = [x for x in os.listdir(config.nft_save_path) if (x not in removeList)][0] # Gets first Batch and ignores removeList files
batchContent = os.listdir(os.path.join(config.nft_save_path, batch1))
batchContent = [x for x in batchContent if (x not in removeList)]
if "Images" in batchContent:
@ -132,7 +133,6 @@ def reformatNFTCollection():
os.mkdir(completeMetaDataPath)
batchListDirty = os.listdir(config.nft_save_path)
removeList = [".gitignore", ".DS_Store"]
batchList = [x for x in batchListDirty if (x not in removeList)]
imageCount = 1