Skip to content

Commit

Permalink
Merge branch 'lessDiskSpace' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Jun 10, 2014
2 parents 6fe6df2 + c4f25bb commit 0d7ea86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OneClick.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ def reloadMemory(self):
Bookworm = BookwormSQLDatabase(dbname,variableFile=None)
Bookworm.reloadMemoryTables()

def reloadAllMemory(self):
#reloads the memory tables for every bookworm on the server.
datahandler = BookwormSQLDatabase('tmp',variableFile=None)
cursor = datahandler.db.query("SELECT TABLE_SCHEMA FROM information_schema.tables WHERE TABLE_NAME='masterTableTable'")
for row in cursor.fetchall():
Bookworm = BookwormSQLDatabase(row[0],variableFile=None)
Bookworm.reloadMemoryTables()

def database_metadata(self):
Bookworm = BookwormSQLDatabase(dbname)
Bookworm.load_book_list()
Expand Down

0 comments on commit 0d7ea86

Please sign in to comment.