Bnux256 / TheoryHelper

Easily learn for the Israeli driving theory exam for private cars.
https://theoryhelper.vercel.app
3 stars 0 forks source link

Missing Questions file #6

Closed okspy47 closed 1 year ago

okspy47 commented 1 year ago

The questions/questions.json file misses from the repo. Can u at least provide a JSON template please?

Bnux256 commented 1 year ago

Hi! Run python3 lib/download_cache.py to create the questions/questions.json file.

okspy47 commented 1 year ago

Hi! Run python3 lib/download_cache.py to create the questions/questions.json file.

Thank you. I will try it as soon as I'm home.

okspy47 commented 1 year ago

When trying the command, I'm getting this error at the part 18 of the cache: image

Bnux256 commented 1 year ago

What Python version are you using? Seems to be an issue with decoding... Here is my file if that's helpful (.csv because of Github uploads, rename file and change type to .json. questions.json.csv

okspy47 commented 1 year ago

Trying. Also cant do it with docker as it request me access and for some reason it says my account is incorrect

image

Bnux256 commented 1 year ago

The readme had a mistake, before docker compose up -d run the build command: docker build . -t bnux256/theoryhelper. Hope this solves it!

okspy47 commented 1 year ago

I cant understand a bit of Hebrew. Can u make a smaller JSON with a few categories and questions, so I can understand the JSON better? Thanks in advance

Bnux256 commented 1 year ago

Oh, I didn't realize that. Sadly, this project can't be adapted to use other question databases. The JSON file is downloaded from the Israeli Transportation Minstery's site and is actually designed quite poorly. It contains HTML inside the questions and all questions relevant to cars include «В» inside the text. What are you looking to do?

okspy47 commented 1 year ago

Oh, I didn't realize that. Sadly, this project can't be adapted to use other question databases. The JSON file is downloaded from the Israeli Transportation Minstery's site and is actually designed quite poorly. It contains HTML inside the questions and all questions relevant to cars include «В» inside the text. What are you looking to do?

I'm trying to manually Add question from Romanian Driving Law, So i can adapt it tho the Romanian law

okspy47 commented 1 year ago

So, I thought that I can modify the JSON itself manually with Romanian questions

okspy47 commented 1 year ago

So it isn't possible by any way?

Bnux256 commented 1 year ago

Sadly won't really work... Here are a few other projects which might be useful: Anki - Has spaced repetition and can import from Quizlet flashbang openmultiplechoice