mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Got rid of the debugging print statements
This commit is contained in:
parent
9ba03da346
commit
74d9910a4c
1 changed files with 0 additions and 4 deletions
|
|
@ -48,7 +48,6 @@ class Command(BaseCommand):
|
|||
current_parents = {0: None}
|
||||
|
||||
for line in lines:
|
||||
print line
|
||||
if len(line) == 0:
|
||||
continue
|
||||
if line[0] == ' ' or line[0] == '\t':
|
||||
|
|
@ -58,12 +57,9 @@ class Command(BaseCommand):
|
|||
raise CommandError("You can't mix spaces and tabs for indents")
|
||||
level = line.count(indent)
|
||||
current_parents[level] = self.make_category(line, parent=current_parents[level-1])
|
||||
print current_parents
|
||||
else:
|
||||
# We are back to a zero level, so reset the whole thing
|
||||
current_parents = {0: self.make_category(line)}
|
||||
print current_parents
|
||||
print Category.objects.all()
|
||||
|
||||
def handle(self, *file_paths, **options):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue