Skip to content

Commit

Permalink
Fixed backup database to be conformant JSON, #56
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Jul 17, 2022
1 parent a01c4bb commit 255a128
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pytest==7.1.2
build==0.8.0
pyinstaller==5.2
pytest==7.1.2
2 changes: 1 addition & 1 deletion osxmetadata/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def write_backup_file(backup_file, backup_data):
as returned by json.loads(OSXMetaData.to_json())"""

with open(backup_file, mode="w") as fp:
json.dump(list(backup_data.values()), fp)
json.dump(list(backup_data.values()), fp, indent=2)


def load_backup_file(backup_file):
Expand Down
11 changes: 7 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
xattr>=0.9.7
click>=7.0
bitstring==3.1.9
click>=7.0
py-applescript==1.0.2
pyobjc-core
pyobjc-framework-AppleScriptKit
pyobjc-framework-AppleScriptObjC
py-applescript==1.0.2
pyobjc-framework-AVFoundation
pyobjc-framework-CoreMedia
pyobjc-framework-Quartz
twine==3.4.1
wheel==0.36.2
twine==3.4.1
xattr>=0.9.7

0 comments on commit 255a128

Please sign in to comment.