Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DEViantUA authored Nov 24, 2022
1 parent 60e8716 commit 12ca7e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions enkanetworkcard/aioenkbanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def saveBanner(uid,res,name):
pass
res.save(f"{path}/EnkaImg/{uid}/{name}_{data}.png")

def generation(charter,assets,img,adapt,uid,RESULT, save,signatureRes,translateLang,teample = 1):
def generation(charter,assets,img,adapt,uid,RESULT, save,signatureRes,translateLang,splash,teample = 1):
if teample == 1:
result = generationOne(charter,assets,img,adapt,signatureRes,translateLang["lvl"])
result = generationOne(charter,assets,img,adapt,signatureRes,translateLang["lvl"],splash)
else:
result = generationTwo(charter,assets,img,adapt,signatureRes,translateLang)
result = generationTwo(charter,assets,img,adapt,signatureRes,translateLang,splash)
if not save:
saveBanner(uid,result,charter.name)
else:
Expand Down Expand Up @@ -143,9 +143,9 @@ def characterImg(self,name):
def startNameGeneration(self,key,uid,startPotoki,ResultEnka,signatureRes, teample):
if not f"{uid}_{key.name.lower()}" in startPotoki:
if self.randomImg:
startPotoki[f"{uid}_{key.name.lower()}"] = Thread(target=generation,args=(key,self.assets,openUserImg(random.choice(self.img)),self.adapt,uid,ResultEnka,self.dowload,signatureRes,self.translateLang, teample))
startPotoki[f"{uid}_{key.name.lower()}"] = Thread(target=generation,args=(key,self.assets,openUserImg(random.choice(self.img)),self.adapt,uid,ResultEnka,self.dowload,signatureRes,self.translateLang,self.splash, teample))
else:
startPotoki[f"{uid}_{key.name.lower()}"] = Thread(target=generation,args=(key,self.assets,self.img,self.adapt,uid,ResultEnka,self.dowload,signatureRes,self.translateLang, teample))
startPotoki[f"{uid}_{key.name.lower()}"] = Thread(target=generation,args=(key,self.assets,self.img,self.adapt,uid,ResultEnka,self.dowload,signatureRes,self.translateLang,self.splash, teample))
startPotoki[f"{uid}_{key.name.lower()}"].start()

def dowloadImg(self,startPotoki,ResultEnka):
Expand Down

0 comments on commit 12ca7e2

Please sign in to comment.