kopia lustrzana https://github.com/torrinworx/Blend_My_NFTs
Patching RefactorBatch issue with new method
rodzic
763246d145
commit
c67e420aa3
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue