pdb
This commit is contained in:
parent
c9fe1637e8
commit
1be0dfa7c4
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ class Command(BaseCommand):
|
||||||
Bluetooth.objects.all().delete()
|
Bluetooth.objects.all().delete()
|
||||||
Camera.objects.all().delete()
|
Camera.objects.all().delete()
|
||||||
devicesdir = settings.LINEAGEWIKI + "/_data/devices/"
|
devicesdir = settings.LINEAGEWIKI + "/_data/devices/"
|
||||||
|
# import pdb; pdb.set_trace()
|
||||||
for filename in os.listdir(devicesdir):
|
for filename in os.listdir(devicesdir):
|
||||||
|
|
||||||
with open(os.path.join(devicesdir, filename), "r") as stream:
|
with open(os.path.join(devicesdir, filename), "r") as stream:
|
||||||
|
@ -86,4 +87,5 @@ class Command(BaseCommand):
|
||||||
dev.save()
|
dev.save()
|
||||||
except yaml.YAMLError as exc:
|
except yaml.YAMLError as exc:
|
||||||
print(exc)
|
print(exc)
|
||||||
stream.close()
|
stream.close()
|
||||||
|
|
Loading…
Reference in a new issue