SMILEConsortium / smile_teacher_android

The SMILE Teacher Android App
http://www.smileconsortium.org
Apache License 2.0
1 stars 2 forks source link

Scores from students using SMILE Student Web don't show up in the Questions Tab #13

Closed truedat101 closed 10 years ago

truedat101 commented 11 years ago

If a student using SMILE Student Web participates in a session, their scores are not computed in the scoring on the Questions Tab.

truedat101 commented 11 years ago

Dump from server:

[{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Blue","O2":"Green","O3":"Yellow","O4":"Orange","Q":"What color is the sky?","A":1},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Person from outer space","O2":"Non-citizen","O3":"A first generation of Japanese (Issei) who came to the U.S.A.","O4":"Both \"b\" and \"c\"","Q":"When referring to Japanese Americans, what was an Alien?","A":2},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Arkansas and Arizona","O2":"California and Colorado","O3":"Idaho, Utah, Wyoming","O4":"All of the above","Q":"What states had War Relocation Authority (WRA) camps for Japanese and Japanese-Americans?","A":2},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Isolated rural areas","O2":"Extreme temperatures in summer (120 degrees F) and winter (32 degrees F)","O3":"Frequent dusty sandstorms","O4":"All of the above","Q":"What environmental and/or geographical characteristics did MOST of the internment camps share?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Double roofs for insulation during hot summers","O2":"Basement areas for flooding overflows and relief from the hot weather","O3":"Mosquito netting for malaria control","O4":"Both \"a\" and \"b\"","Q":"How and why were the barracks at Gila River and Poston built differently from the barracks in other camps?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"The desert camps were built on prehistoric ocean floors","O2":"Internees requested imports of shells and other supplies from friends in California coastal towns","O3":"Shells were found in ponds and creeks running through the camps","O4":"Both \"a\" and \"c\"","Q":"Why was much of the hand-crafted internee jewelry created from seashells?","A":1},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Coal","O2":"Wood","O3":"Gas","O4":"All of the above","Q":"How were the rooms in the tarpaper barracks heated during cold weather?","A":1},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Truck farming vegetables (like broccoli, carrots, cucumber, tomatoes, etc.)","O2":"Cocoa, coconuts, coffee, pineapple","O3":"Daikon, gobo, nasubi, napa, shiguki","O4":"Gourd-type crops (like pumpkins, cantaloupes, winter squash, watermelon)","Q":"What crops were NOT grown by the internees?","A":3},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Laid linoleum over floorboards","O2":"Stuffed toilet paper in wall spaces","O3":"Laid carpeting to cover floor spaces","O4":"All the above","Q":"How did internees solve the problem of dirt and sand blowing in through the spaces between the floorboards and walls?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Metal Army cots (without mattresses) and at least two Army blankets per cot","O2":"One heating stove","O3":"One electric light","O4":"All the above","Q":"What did the WRA issue for each room in the barracks?","A":2},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Used scrap lumber to build furniture and placed drop cloths around the cots","O2":"Created paintings, craft items, and curtains to decorate the rooms","O3":"Insulated walls with sheetrock and later painted them","O4":"All the above","Q":"How did internees make their barracks rooms more livable?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"fearful about","O2":"loyal towards","O3":"disloyal towards","O4":"confused about","Q":"The Army assumed an internee who answered ?No? and ?No? to questions #27 and #28 meant that he was __the United States.","A":2},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"They were too old to fight as soldiers in the military","O2":"They were household heads, who wanted to stay with their families","O3":"They would lose all citizenship rights as Japanese or Americans","O4":"All the above","Q":"Why did Issei men respond ?No? to question #27 or #28?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"They had lost their citizenship rights (as enemy aliens), so they wouldn?t fight for a country that had taken away their citizenship","O2":"They were in internment camps","O3":"They were NOT loyal to the Japanese emperor in the first place","O4":"All the above","Q":"Why did Nisei men respond ?No? to question #27 or #28?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Less than 100","O2":"100-199","O3":"200-299","O4":"300+","Q":"How many men were convicted of draft resistance in the camps?","A":2},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Gila River, AZ","O2":"Manzanar, CA","O3":"Poston, AZ","O4":"Tule Lake, CA","Q":"Which camp had the highest number of draft resisters?","A":4},{"TYPE":"QUESTION","IP":"127.0.0.1","NAME":"teacher","O1":"Tojo vs. United States","O2":"Hirabayashi vs. United States","O3":"Korematsu vs. United States","O4":"Yasui vs. United States","Q":"Which of the following was NOT a Supreme Court case challenging the constitutionality of the World War II experience for Japanese Americans?","A":3},{"TYPE":"START_MAKE"},{"TYPE":"HAIL","IP":"10.1.0.246","NAME":"default.246"},{"TYPE":"HAIL","IP":"10.1.0.246","NAME":"default.246"},{"TYPE":"START_SOLVE","NUMQ":17,"RANSWER":[1,2,2,4,4,1,1,3,4,2,4,2,4,4,2,4,3],"TIME_LIMIT":10},{"TYPE":"HAIL","IP":"10.1.0.247","NAME":"ebkdafcv4163"},{"MYRATING":["1","3","5","5","5","5","5","5","5","5","5","5","5","5","5","5","5"],"MYANSWER":["1","2","2","4","4","4","1","3","4","2","4","2","2","1","3","2","1"],"NAME":"ebkdafcv4163","TYPE":"ANSWER","IP":"10.1.0.247"},{"MYRATING":[3,3,3,4,2,3,4,3,4,2,5,5,3,3,3,4,4],"MYANSWER":[1,2,2,4,4,2,1,2,2,4,4,2,3,4,1,1,1],"NAME":"default.246","TYPE":"ANSWER","IP":"10.1.0.246"},{"TYPE":"START_SHOW","WINSCORE":["default.246"],"WINRATING":["teacher","teacher"],"HIGHSCORE":9,"HIGHRATING":27.5,"NUMQ":17,"RANSWER":[1,2,2,4,4,1,1,3,4,2,4,2,4,4,2,4,3],"AVG_RATINGS":[6.5,16.5,26.5,27,26,26.5,27,26.5,27,26,27.5,27.5,26.5,26.5,26.5,27,27],"RPERCENT":[50,50,50,50,50,0,50,0,0,0,50,50,0,50,0,0,0]}]

thiagofnogueira commented 11 years ago

The "Smile Teacher" app is ok! I found a possible problem in the "Smile Web":

File "smilestudent.js", line 302: doPostAnswers(GlobalViewModel.answersarray(), GlobalViewModel.ratingsarray(), GlobalViewModel.username(), GlobalViewModel.clientip(), function() { // // Should we do something else? // smileAlert('#globalstatus', 'Submitted Answers for ' + GlobalViewModel.username(), 'blue', 5000); });

The "Smile Web" doesn't submit answers. Could you please check this out in the "Smile Web" application?

truedat101 commented 11 years ago

I'm not sure why he closed this issue. If it's not fixed, and it's not clear yet where the problem is, it shouldn't be closed.

truedat101 commented 10 years ago

Problem was fixed in Android Teacher application. I'll close after I dig up the reference commit.

truedat101 commented 10 years ago

Fixed here: https://github.com/SMILEConsortium/node-smile-server/issues/29