Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Jan 5, 2022
1 parent 95f4d0c commit 3ac0f31
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions utils/mask_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@ def func1(data):
for key, value in data.items():
# print(str(key) + '->' + str(value))

if key == "deviceurl":
key = "deviceURL"

if key == "placeoid":
key = "placeOID"

if key in ["gateway_id", "gatewayId", "id", "device_url", "deviceurl", "deviceURL"]:
if key in ["gatewayId", "id", "deviceURL"]:
data[key] = obfuscate_id(value)

if key in ["label", "city", "country", "postal_code", "postalCode", "address_line1", "addressLine1", "address_line2", "addressLine2", "longitude", "latitude"]:
if key in ["label", "city", "country", "postalCode", "addressLine1", "addressLine2", "longitude", "latitude"]:
data[key] = mask(value)

if value in ["core:NameState", "homekit:SetupCode", "homekit:SetupPayload"]:
Expand Down Expand Up @@ -74,7 +68,6 @@ def func1(data):

try:
input = json.loads(input_file.read())
input = humps.camelize(input)
output = func1(input)
except Exception as exception:
print(f"Error while masking: {filename}")
Expand Down

0 comments on commit 3ac0f31

Please sign in to comment.