Skip to content

Commit 2f270ad

Browse files
authored
Merge pull request #14 from gbatiz/json_typo_and_pdf_upload
Json typo and pdf upload
2 parents 7d2318b + d570ff2 commit 2f270ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"key": "~/.ssh/id_rsa",
99
"username": "root",
1010
"timeout": 3,
11-
"use_banner": "remy-banner.png",
11+
"use_banner": "remy-banner.png"
1212
},
1313
"wifi": {
1414
"name": "reMarkable (RSync)",

remy/remarkable/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def newPDFDoc(self, pdf, metadata={}, content={}):
611611
print(uid)
612612
meta = PDF_BASE_METADATA.copy()
613613
meta.setdefault('visibleName', os.path.splitext(os.path.basename(pdf))[0])
614-
meta.setdefault('lastModified', str(arrow.utcnow().timestamp * 1000))
614+
meta.setdefault('lastModified', str(arrow.utcnow().int_timestamp * 1000))
615615
meta.update(metadata)
616616

617617
cont = PDF_BASE_CONTENT.copy()

0 commit comments

Comments
 (0)