libjam 0.0.8__tar.gz → 0.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libjam-0.0.8 → libjam-0.0.9}/PKG-INFO +1 -1
- {libjam-0.0.8 → libjam-0.0.9}/libjam/drawer.py +6 -3
- {libjam-0.0.8 → libjam-0.0.9}/libjam/notebook.py +1 -1
- {libjam-0.0.8 → libjam-0.0.9}/pyproject.toml +1 -1
- {libjam-0.0.8 → libjam-0.0.9}/.gitignore +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/LICENSE +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/README.md +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/build.sh +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/libjam/__init__.py +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/libjam/captain.py +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/libjam/clipboard.py +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/libjam/flashcard.py +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/libjam/typewriter.py +0 -0
- {libjam-0.0.8 → libjam-0.0.9}/requirements.txt +0 -0
@@ -347,13 +347,13 @@ class Drawer:
|
|
347
347
|
return outpath(temp)
|
348
348
|
|
349
349
|
def get_file_size(self, path: str):
|
350
|
+
path = realpath(path)
|
350
351
|
try:
|
351
|
-
size = 0
|
352
352
|
if self.is_file(path):
|
353
|
-
|
354
|
-
size += os.path.getsize(path)
|
353
|
+
size = os.path.getsize(path)
|
355
354
|
elif self.is_folder(path):
|
356
355
|
subfiles = self.get_files_recursive(path)
|
356
|
+
size = 0
|
357
357
|
for subfile in subfiles:
|
358
358
|
size += os.path.getsize(subfile)
|
359
359
|
return size
|
@@ -372,3 +372,6 @@ class Drawer:
|
|
372
372
|
else:
|
373
373
|
return 1
|
374
374
|
return 0
|
375
|
+
|
376
|
+
def get_platform(self):
|
377
|
+
return PLATFORM
|
@@ -87,7 +87,7 @@ class Notebook:
|
|
87
87
|
try:
|
88
88
|
data = json.loads(json_string)
|
89
89
|
except json.decoder.JSONDecodeError:
|
90
|
-
json_string = json_string.replace('\n', ' ')
|
90
|
+
json_string = json_string.replace('\n', ' ').strip()
|
91
91
|
data = ast.literal_eval(json_string)
|
92
92
|
except:
|
93
93
|
data = None
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|