* Added 'cacheSessions' flag
* Added a cacheSessions update call to import_file_dict() in fpdb_import.py * Added updateSessionsCache() method to Hands * Added storeSessionsCache() to Database --- WORK IN PROGRESS and set to pass TO DOs - add sessions queries to SQL - complete storeSessionsCache() so it works like we've discussed (save for adding sessionId to HP) - add SessionsCache keys - add SessionsCache to the default table creation and deletion methods in Database.py - update storeSessionsCache() and all the relevant db & sql code so it writes a sessionId to HP
This commit is contained in:
@@ -495,6 +495,13 @@ class Importer:
|
||||
if hand is not None and not hand.is_duplicate:
|
||||
hand.updateHudCache(self.database)
|
||||
self.database.commit()
|
||||
|
||||
# Call sessionsCache update
|
||||
if self.cacheSessions:
|
||||
for hand in handlist:
|
||||
if hand is not None and not hand.is_duplicate:
|
||||
hand.updateSessionsCache(self.database)
|
||||
self.database.commit()
|
||||
|
||||
#pipe the Hands.id out to the HUD
|
||||
if self.caller:
|
||||
|
||||
Reference in New Issue
Block a user