Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Wrong number of unattempted questions on result page #8

Open
franceskoal opened this issue Sep 30, 2019 · 4 comments
Open

Wrong number of unattempted questions on result page #8

franceskoal opened this issue Sep 30, 2019 · 4 comments

Comments

@franceskoal
Copy link

Hi,
First, thank you for this outstanding script!
I'm using it locally on a project (driving school theory testing) and im facing a problem after users submits their attempts.
Currently using Savsoft 4.0 advanced.
I have 3000+ questions, 25 categories, 2 Levels and only one group. (And 10 users)

The problem happens when i choose Automatically method for adding questions.
Every Test has 40 random questions. (From one category): After submiting the test, on categorywise stats it shows only 20 in total!!
For tests with 40 questions for all categories (25 categories): it shows only 25 after submiting in the categorywise section on result page!

I think its a problem how the category_range on database is calculated. I have tested this on the v5 version too and the same happens.

@franceskoal
Copy link
Author

Update: I did realise that the problem is with Levels. If we have 2 Categories with 2 Levels for each category, Categorywise analytics is taking consideration only for one level.
For example:
Category 1: Math
Category 2: General
Level(1): Easy
Level(2): Difficult

Exam configured like this:
Name: Test1
Automatically add questions to quiz
Category: Math Level: Easy - 10 Questions
Category: Math Level: Difficult - 10 Questions
Category: General Level: Easy - 10 Questions
Category: General Level: Difficult - 10 Questions.

@savsofts
Copy link
Owner

savsofts commented Oct 1, 2019 via email

@franceskoal
Copy link
Author

Hi, it happens on V5 version too. It's a bug on Quiz_model.php (savsoft v5 master)
// randomaly select qids
$this->db->where('quid',$quid);
$query=$this->db->get('savsoft_qcl');
$qcl=$query->result_array();
$qids=array();.....

I

@franceskoal
Copy link
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants