Skip to content

Commit

Permalink
Merge pull request #89 from KQMATH/release/1.1
Browse files Browse the repository at this point in the history
Release/1.1
  • Loading branch information
hgeorgsch authored Aug 17, 2022
2 parents 42cb07b + d6e203a commit b5abcc3
Show file tree
Hide file tree
Showing 20 changed files with 138 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,29 @@ jobs:
- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome

- name: Convert Coverage (clover2lcov)
uses: andstor/clover2lcov-action@v1
if: ${{ always() }}
with:
src: ./coverage.xml
dst: ./coverage/lcov.info

- name: Coveralls Parallel
if: ${{ always() }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.test_number }}
parallel: true

finish:
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org).
### Changed
-

## [1.1.0] - 2022-08-17

- Added button to delete session report
- Prevent repetition of
- Tested with Moodle 3.11

## [1.0.1] - 2021-02-05

- Tested and approved for Moodle 3.9 and 3.10
Expand Down
12 changes: 12 additions & 0 deletions ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ function start_question(jazzquiz_session $session) {
$questionid = $jazzquizquestion->question->id;
$questiontime = $jazzquizquestion->data->questiontime;
break;
case 'random':
$slots = $session->get_unasked_slots();
if (count($slots) > 0) {
$session->data->slot = $slots[array_rand($slots)];
} else {
$lastslot = count($session->jazzquiz->questions);
$session->data->slot = random_int(1, $lastslot);
}
$jazzquizquestion = $session->jazzquiz->questions[$session->data->slot];
$questionid = $jazzquizquestion->question->id;
$questiontime = $jazzquizquestion->data->questiontime;
break;
default:
return [
'status' => 'error',
Expand Down
3 changes: 0 additions & 3 deletions amd/.babelrc

This file was deleted.

3 changes: 2 additions & 1 deletion amd/build/core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/core.min.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion amd/build/edit.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5abcc3

Please sign in to comment.