diff --git a/BUGS.md b/BUGS.md index a84f87c..013b61f 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,6 +1,7 @@ # BUGS +- se aluno abre dois tabs no browser, conseque navegar em simultaneo para perguntas diferentes. quando submete uma delas dá asneira. Tem de haver um campo hidden que tenha um céodigo único que indique qual a pergunta. do lado do servidor apnas há o codigo da pergunta corrente, se forem diferentes faz redirect para /. - guardar o estado a meio de um nível. - safari as vezes envia dois gets no inicio do topico. nesses casos, a segunda pergunta não é actualizada no browser... o topico tem de ser gerado qd se escolhe o topico em main_topics. O get nao deve alterar o estado. - click numa opcao checkbox fora da checkbox+label não está a funcionar. diff --git a/README.md b/README.md index bf360c8..bdf9a4e 100644 --- a/README.md +++ b/README.md @@ -10,23 +10,27 @@ Before installing the server, we will need to install python with some additiona This can be done using the system package management, downloaded from [http://www.python.org](), or compiled from sources. - Installing from the system package manager: - ```sh - sudo port install python37 # MacOS - sudo pkg install python37 py37-sqlite3 # FreeBSD - sudo apt install ?not available yet? # Linux, install from source - ``` + +```sh +sudo port install python37 # MacOS +sudo pkg install python37 py37-sqlite3 # FreeBSD +sudo apt install ?not available yet? # Linux, install from source +``` + - Installing from source: - Download from [http://www.python.org]() and + +Download from [http://www.python.org]() and + +```sh +unxz Python-3.7.tar.xz +tar xvf Python-3.7.tar +cd Python-3.7 +./configure --prefix=$HOME/.local/bin +make && make install +``` - ```sh - unxz Python-3.7.tar.xz - tar xvf Python-3.7.tar - cd Python-3.7 - ./configure --prefix=$HOME/.local/bin - make && make install - ``` +This will install python locally under `~/.local/bin`. Make sure to add it to your `PATH` (edit `~/.profile` in MacOS or FreeBSD). - This will install python locally under `~/.local/bin`. Make sure to add it to your `PATH` (edit `~/.profile` in MacOS or FreeBSD). ### Install pip @@ -184,7 +188,7 @@ Reboot or `sudo service pf start`. To help with troubleshooting, use the option `--debug` when running the server. This will increase logs in the terminal and will present the python exception errors in the browser. -Logging levels can be adjusted in `config/logger.yaml` and `config/logger-debug.yaml`. +Logging levels can be adjusted in `~/.config/aprendizations/logger.yaml` and `~/.config/aprendizations/logger-debug.yaml`. #### UnicodeEncodeError @@ -209,7 +213,7 @@ me:\ sqlite3 students.db "select distinct student_id from studenttopic" ``` -- How many topics had each student done? +- How many topics has each student done? ```sh sqlite3 students.db "select student_id, count(topic_id) from studenttopic group by student_id order by count(topic_id) desc" diff --git a/aprendizations/learnapp.py b/aprendizations/learnapp.py index 6a4050a..e5ce6ad 100644 --- a/aprendizations/learnapp.py +++ b/aprendizations/learnapp.py @@ -239,7 +239,7 @@ class LearnApp(object): if new_topics: s.add_all(new_topics) - logger.info(f'Added {len(new_topics)} new topics to the ' + logger.info(f'Added {len(new_topics)} new topic(s) to the ' f'database') # ------------------------------------------------------------------------ diff --git a/package-lock.json b/package-lock.json index bbdc4d2..de928cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3,14 +3,14 @@ "lockfileVersion": 1, "dependencies": { "@fortawesome/fontawesome-free": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.7.2.tgz", - "integrity": "sha512-Ha4HshKdCVKgu4TVCtG8XyPPYdzTzNW4/fvPnn+LT7AosRABryhlRv4cc4+o84dgpvVJN9reN7jo/c+nYujFug==" + "version": "5.8.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.8.1.tgz", + "integrity": "sha512-GJtx6e55qLEOy2gPOsok2lohjpdWNGrYGtQx0FFT/++K4SYx+Z8LlPHdQBaFzKEwH5IbBB4fNgb//uyZjgYXoA==" }, "codemirror": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.43.0.tgz", - "integrity": "sha512-mljwQWUaWIf85I7QwTBryF2ASaIvmYAL4s5UCanCJFfKeXOKhrqdHWdHiZWAMNT+hjLTCnVx2S/SYTORIgxsgA==" + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.45.0.tgz", + "integrity": "sha512-c19j644usCE8gQaXa0jqn2B/HN9MnB2u6qPIrrhrMkB+QAP42y8G4QnTwuwbVSoUS1jEl7JU9HZMGhCDL0nsAw==" }, "mathjax": { "version": "2.7.5", @@ -18,9 +18,9 @@ "integrity": "sha512-OzsJNitEHAJB3y4IIlPCAvS0yoXwYjlo2Y4kmm9KQzyIBZt2d8yKRalby3uTRNN4fZQiGL2iMXjpdP1u2Rq2DQ==" }, "mdbootstrap": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/mdbootstrap/-/mdbootstrap-4.7.3.tgz", - "integrity": "sha512-Vnh1IZBywNcnGuvSCpcX20fEG6jMFuwmM8NePan3pndDQMGvi12Nl2HjvF70dGdLICc4exOEs6rQ2ThGY3dcyQ==" + "version": "4.7.6", + "resolved": "https://registry.npmjs.org/mdbootstrap/-/mdbootstrap-4.7.6.tgz", + "integrity": "sha512-b5Dgg/DQon8E3F/oIKJsCiFN1E5kgQBlndQ8vNzDnGcQXo2ruVKZA6Z3cvIJrv2IKS1kPBWOUwDedJiCLoAZxA==" } } } diff --git a/package.json b/package.json index 80aea47..d38e5ad 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "description": "Javascript libraries required to run the server", "email": "mjsb@uevora.pt", "dependencies": { - "@fortawesome/fontawesome-free": "^5.7.1", - "codemirror": "^5.43.0", + "@fortawesome/fontawesome-free": "^5.8.1", + "codemirror": "^5.45.0", "mathjax": "^2.7.5", - "mdbootstrap": "^4.7.3" + "mdbootstrap": "^4.7.6" } } -- libgit2 0.21.2