d0c 1 year ago
parent
commit
1be0dfa7c4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      suitablephones/management/commands/fetchphones.py

+ 3 - 1
suitablephones/management/commands/fetchphones.py

@@ -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()
+