From 09e86eb1db8af5421f8ce0501ec13a520d9648ff Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 24 Dec 2015 17:34:24 +0300 Subject: [PATCH] Pass keywords parameters to insert_name --- m_librarian/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(): -- 2.39.5