Skip to content

Commit

Permalink
Merge pull request #14 from gbatiz/json_typo_and_pdf_upload
Browse files Browse the repository at this point in the history
Json typo and pdf upload
  • Loading branch information
bordaigorl authored Mar 8, 2021
2 parents 7d2318b + d570ff2 commit 2f270ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"key": "~/.ssh/id_rsa",
"username": "root",
"timeout": 3,
"use_banner": "remy-banner.png",
"use_banner": "remy-banner.png"
},
"wifi": {
"name": "reMarkable (RSync)",
Expand Down
2 changes: 1 addition & 1 deletion remy/remarkable/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ def newPDFDoc(self, pdf, metadata={}, content={}):
print(uid)
meta = PDF_BASE_METADATA.copy()
meta.setdefault('visibleName', os.path.splitext(os.path.basename(pdf))[0])
meta.setdefault('lastModified', str(arrow.utcnow().timestamp * 1000))
meta.setdefault('lastModified', str(arrow.utcnow().int_timestamp * 1000))
meta.update(metadata)

cont = PDF_BASE_CONTENT.copy()
Expand Down

0 comments on commit 2f270ad

Please sign in to comment.