Coder Social home page Coder Social logo

Comments (13)

C0D3D3V avatar C0D3D3V commented on August 31, 2024 1

:D I never saw someone using the database module. I will have a look on it.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024 1

The feedback was of course very helpful, thanks for that. I hope the last update has fixed the bug.

Your first two exceptions cannot be based on the last code base. Please make sure that you really use the latest version of the code.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024 1

Thank you very much :) It's an honor.
If I don't know what to do with my time I'll see if I can get the descriptions and links from the databases. But for now it should be ok without them.

If there is anything else, you can just open a new issue.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024

Seems at first view to be easy to implement. It is only problematic if the database contains a lot of data, but this can be optimized over time. I will do the first steps in the next days and report the status here.

from moodle-dl.

verone0001 avatar verone0001 commented on August 31, 2024

Good to know! In this case, the database contains only 53 C/C++ files which are around ~3-7 KB. Each one containing a little description (which I don't really care). I will be following the updates 👍.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024

I have implemented the desired function as you can see here: e21eaf1...56aa81a
The implementation is very primitive and not optimized at all. Currently, all files of the databases are simply downloaded. Feeback is very welcome :)

I hope this is the way you wanted it :) I wrote this just for you. I tested it with a test Moodle, because our university does not use the database module at all.

You have to activate the download either by adding "download_databases": true, to the configuration or by running python main.py --config and activating the function at the right place.

I have also documented the used API functions a bit, maybe someone is interested :D https://github.com/C0D3D3V/Moodle-Downloader-2/wiki/Databases

from moodle-dl.

verone0001 avatar verone0001 commented on August 31, 2024

Great to read good news! I'll be testing this and giving you some feedback of course!

from moodle-dl.

verone0001 avatar verone0001 commented on August 31, 2024

So as far as I could see, making it the interactive way (Do you want to make additional configurations now? (Y/N)) displays the following error:

image

Right after that one, I traced it and noticed that fetch_userid_and_version wasn't an attribute from such line, so I added it and tested it again, but got this error:

image

so I traced it down again (this time to the main ResultsHandler definition) and noticed that fetch_userid_and_version isn't implemented into such class, cutting the workflow.

Now, manually adding download_databases: true inside # create default settings from config_service.py sections _set_options_of_courses and _change_settings_of(this one just in case), displays me the following error:

image

cutting the workflow again (as the previous one, maybe the implementation is missing in such file).

Hope this feedback is somehow useful!

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024

Did you used the latest code?

from moodle-dl.

verone0001 avatar verone0001 commented on August 31, 2024

Yes, and I verified it twice just in case.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024

That is strange because line 32 does not exist in the config_service.py from the first exception. Also line 27 is diffrent...

But the third exception seems to be real, i will fix it later.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on August 31, 2024

you can change line 237 in moodle_service.py to:
course_databases = databases.get(course.id, {})

this could fix it. I can push it in a few hours, when I'm back home...

from moodle-dl.

verone0001 avatar verone0001 commented on August 31, 2024

I have just arrived at home and tested it the interactive way and is working like a charm! I don't know why I got those errors though, but after your latest commit I downloaded it all again.
Thanks for this great update, I know the database module could be a bit weird to use in moodle (it's the first assignement who had one actually), but it is downloading all the files correctly. The description for each one is not necessary to me.
Keep on this amazing project 🔥.

from moodle-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.