Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error de __str__ en una de las clases de spider 😭⚠️ #3

Open
pipeaw opened this issue Aug 16, 2023 · 0 comments
Open

Error de __str__ en una de las clases de spider 😭⚠️ #3

pipeaw opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pipeaw
Copy link
Member

pipeaw commented Aug 16, 2023

Me apareció un TypeError en ./spider/spider.py y no logro encontrar el error ! ! !

(ayuda llevó 3 años reprobando el exploratorio por este bug 💀 )

Será que el error se encuentra por aquí?

def __str__(self):
txt = "Stock (" + str(len(self.stock)) + ")\n"
header = [
"---",
"-0-",
"-1-",
"-2-",
"-3-",
"-4-",
"-5-",
"-6-",
"-7-",
"-8-",
"-9-",
]
txt += "\t".join(header) + "\n"
for i in range(0, self.max_depth()):
if i <= 9:
n = "0" + str(i)
else:
n = str(i)
row = [n + "-"]
for col in self.cols:
if len(col) <= i: # Esta columna ya no tiene cartas en nivel i
row.append(" ")
else:
row.append(str(col[i]))
txt += "\t".join(row) + "\n"
return txt

@benjavicente benjavicente added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants