]> git.phdru.name Git - m_librarian.git/commitdiff
Pass keywords parameters to insert_name
authorOleg Broytman <phd@phdru.name>
Thu, 24 Dec 2015 14:34:24 +0000 (17:34 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 24 Dec 2015 14:34:24 +0000 (17:34 +0300)
m_librarian/db.py

index 9a5eb0af3e65dd95c5b0a2045e6b2c892ed51b2b..c77e32fc554a092f18dfddaf6d782ce2efa0560b 100755 (executable)
@@ -102,11 +102,11 @@ def init_db():
         return
 
 
-def insert_name(table, name):
+def insert_name(table, name, **kw):
     try:
         return table.byName(name)
     except SQLObjectNotFound:
-        return table(name=name, count=0)
+        return table(name=name, count=0, **kw)
 
 
 def test():