From: Oleg Broytman Date: Thu, 24 Dec 2015 14:34:24 +0000 (+0300) Subject: Pass keywords parameters to insert_name X-Git-Tag: 0.0.3~4 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=09e86eb1db8af5421f8ce0501ec13a520d9648ff;p=m_librarian.git Pass keywords parameters to insert_name --- diff --git a/m_librarian/db.py b/m_librarian/db.py index 9a5eb0a..c77e32f 100755 --- a/m_librarian/db.py +++ b/m_librarian/db.py @@ -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():