Browse Source

sample match-case

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

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

@@ -25,6 +25,9 @@ class Command(BaseCommand):
                     data = yaml.safe_load(stream)
                     dev = Device()
                     for key, value in data.items():
+                        #match caso:
+                        #    case dict():
+                        #        print('dict')
                         if key == "bluetooth":
                             #  get() returned more than one Bluetooth -- it returned 2!   
                             bt = Bluetooth.objects.filter(**value)