mirror of https://github.com/papermerge/mglib
minor fixes, version inc
parent
535af7df83
commit
1e6d1a10ec
|
@ -1,6 +1,13 @@
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.3.5] - 14 December 2020
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- bug fixing of get_versions method
|
||||||
|
|
||||||
|
|
||||||
## [1.3.4] - 14 December 2020
|
## [1.3.4] - 14 December 2020
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -51,11 +51,19 @@ class Storage:
|
||||||
abs_dirname_docs = self.path(
|
abs_dirname_docs = self.path(
|
||||||
doc_path.dirname_docs
|
doc_path.dirname_docs
|
||||||
)
|
)
|
||||||
only_dirs = [
|
try:
|
||||||
fi for fi in listdir(abs_dirname_docs) if isdir(
|
only_dirs = [
|
||||||
join(abs_dirname_docs, fi)
|
fi for fi in listdir(abs_dirname_docs) if isdir(
|
||||||
)
|
join(abs_dirname_docs, fi)
|
||||||
]
|
)
|
||||||
|
]
|
||||||
|
except FileNotFoundError:
|
||||||
|
# in tests, document folders are not always created.
|
||||||
|
# If no document folder is found, just return [ 0 ]
|
||||||
|
# i.e that document has only one single version and it
|
||||||
|
# is the latest one.
|
||||||
|
return [0]
|
||||||
|
|
||||||
dirs_count = len(only_dirs)
|
dirs_count = len(only_dirs)
|
||||||
|
|
||||||
return list(range(0, dirs_count + 1))
|
return list(range(0, dirs_count + 1))
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="mglib",
|
name="mglib",
|
||||||
version="1.3.4",
|
version="1.3.5",
|
||||||
author="Eugen Ciur",
|
author="Eugen Ciur",
|
||||||
author_email="eugen@papermerge.com",
|
author_email="eugen@papermerge.com",
|
||||||
url="https://github.com/papermerge/mglib",
|
url="https://github.com/papermerge/mglib",
|
||||||
|
|
Loading…
Reference in New Issue