Skip to content

Commit

Permalink
Ensured camera module was not saving JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
meadej committed Mar 13, 2023
1 parent c3698e0 commit 32ce09d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions axis-ptz/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,6 @@ def get_json_request():
A dictionary containing the contents os the JSON metadata file.
"""
image_filepath = _format_file_save_filepath(file_extension=".jpg")
filepath = os.path.join(
logging_directory,
os.path.basename(_format_file_save_filepath(file_extension=".json"))
)

file_content_dictionary = {
"timestamp": datetime.now().strftime("%Y-%m-%d-%H-%M-%S"),
Expand All @@ -556,12 +552,6 @@ def get_json_request():
}
}

try:
with open(filepath, "w") as fh:
fh.write(json.dumps(file_content_dictionary))
except Exception as e:
print("Error saving JSON log - " + str(e))

return file_content_dictionary


Expand Down

0 comments on commit 32ce09d

Please sign in to comment.