Skip to content

Commit

Permalink
- fixed BUG: in numerical questions, the solution/error part was not …
Browse files Browse the repository at this point in the history
…properly generated
  • Loading branch information
manuvazquez committed Apr 13, 2020
1 parent e78523e commit 3a4ded7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The most interesting point is probably the last one.

Python requirements are:

- Python >= 3.6
- Python ≥ 3.6
- [paramiko](http://www.paramiko.org/)
- [colorama](https://pypi.org/project/colorama/)
- [pyyaml](https://pypi.org/project/PyYAML/)
Expand All @@ -32,7 +32,7 @@ pip install pyyaml paramiko tqdm colorama

should install all the required packages. If you use [Anaconda](https://anaconda.org/), the [bash](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) script `make_conda_environment.sh` will make a proper environment (named `gift`).

After that, you should be able to run the [latest release](https://github.com/manuvazquez/gift-wrapper/releases/latest) of the package.
After that, you should be able to run the program. You can either download the [latest release](https://github.com/manuvazquez/gift-wrapper/releases/latest) (not necessarily up-to-date) or click *Clone or download* above to get the most recent version.

## Usage

Expand All @@ -48,7 +48,7 @@ if `wrap.py` doesn't have execution permissions.

If you don't pass any argument, `parameters.yaml` and `bank.yaml` files are expected. The former is a settings file wheras the latter is the actual *input file* in which you must write the questions.

The output will be a text file in GIFT format with the same name as the input one (the file with the questions) but `.gift` extension (by default, `bank.gift` then).
The output will be a text file in GIFT format with the same name as the input one (the file with the questions) but `.gift.txt` extension (by default, `bank.gift.txt` then). It seems that *sometimes* Moodle has troubles importing (recognizing) a text file if the extension is not `.txt`.

### Parameters

Expand Down
2 changes: 1 addition & 1 deletion question.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __repr__(self):
@property
def answer(self):

return '\t=%100%' + self.solution_value + self.solution_error + '#'
return '#\t=%100%' + self.solution_value + self.solution_error + '#'


class MultipleChoice(HtmlQuestion):
Expand Down

0 comments on commit 3a4ded7

Please sign in to comment.