From de9c65e3eaf64ee80e2ac91195083956a9766772 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 29 Mar 2011 17:13:31 +0800 Subject: [PATCH] Database: Fix sessionCache when no hero exists --- pyfpdb/Database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 38eb802e..de946a47 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1885,7 +1885,7 @@ class Database: if doinsert: for h in hbulk: id = h.pop() - if hdata['sc'] and hdata['gsc']: + if (hdata['sc'] != None and hdata['sc']['bk']) and hdata['gsc']['bk']: h[4] = hdata['sc'][id]['id'] h[5] = hdata['gsc'][id]['id'] q = self.sql.query['store_hand']