Browse Source

Article.quantity optional

Fabian Peter Hammerle 6 years ago
parent
commit
578cdaf8fe
2 changed files with 5 additions and 4 deletions
  1. 3 2
      finoex/__init__.py
  2. 2 2
      setup.py

+ 3 - 2
finoex/__init__.py

@@ -348,8 +348,9 @@ class Article(Item):
                  ):
         super(Article, self).__init__(**kwargs)
         assert not self.name is None
-        assert type(quantity) is int
-        self.quantity = quantity
+        if quantity is not None:
+            assert type(quantity) is int
+            self.quantity = quantity
         if authors is not None:
             assert type(authors) is list
             self.authors = authors

+ 2 - 2
setup.py

@@ -4,12 +4,12 @@ import glob
 
 setup(
     name = 'finoex',
-    version = '0.12.1',
+    version = '0.12.2',
     # description = '',
     author = 'Fabian Peter Hammerle',
     author_email = 'fabian.hammerle@gmail.com',
     url = 'https://git.hammerle.me/fphammerle/finoex',
-    download_url = 'https://git.hammerle.me/fphammerle/finoex/archive/0.10.0.tar.gz',
+    download_url = 'https://git.hammerle.me/fphammerle/finoex/archive/0.12.2.tar.gz',
     keywords = ['finances'],
     # classifiers = [],
     packages = ['finoex'],