This commit is contained in:
d0c 2023-01-23 16:54:25 +01:00
parent c9fe1637e8
commit 1be0dfa7c4

View file

@ -37,6 +37,7 @@ class Command(BaseCommand):
Bluetooth.objects.all().delete()
Camera.objects.all().delete()
devicesdir = settings.LINEAGEWIKI + "/_data/devices/"
# import pdb; pdb.set_trace()
for filename in os.listdir(devicesdir):
with open(os.path.join(devicesdir, filename), "r") as stream:
@ -86,4 +87,5 @@ class Command(BaseCommand):
dev.save()
except yaml.YAMLError as exc:
print(exc)
stream.close()
stream.close()