1. Richard Shea
  2. MathsMish

Commits

Richard Shea  committed 48d596a Draft

#4 resolution - ensuring that AttemptManager.GetAllForUser returns all the rows it's meant to return

  • Participants
  • Parent commits aed9c3e
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
  • Ignore whitespace
 glob:./idea
 glob:*.pyc
 glob:MMDBPrimary.log
+glob:junk*.py

File MathsMish/mmdb/DataAccess/AttemptDB.py

View file
  • Ignore whitespace
 
     @staticmethod
     def __GetAllForUserByResultCriteiria(user, resultCriteria):
+
         if resultCriteria == Result.SuccessOrFailure:
             strSQL = SELECTATTBYUSER % (user)
         elif resultCriteria == Result.Success:
         c = conn.cursor()
         #self.__module_logger.debug(strSQL)                            
         c.execute(strSQL)
-        lstA = c.fetchmany()
+        lstA = c.fetchall()
         return lstA 
     @staticmethod
     def GetAllSumsWithAttemptDetailsForUser(user):