Comments (13)
:D I never saw someone using the database module. I will have a look on it.
from moodle-dl.
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.
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.
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.
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.
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.
Great to read good news! I'll be testing this and giving you some feedback of course!
from moodle-dl.
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:
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:
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:
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.
Did you used the latest code?
from moodle-dl.
Yes, and I verified it twice just in case.
from moodle-dl.
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.
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.
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)
- Download fails on some courses HOT 1
- Unable to lock cache on Moodle v4 HOT 4
- Retry on timeout
- config.json should be created unreadable to others HOT 2
- Do not download large files HOT 3
- Usage of -nt -u -pw just hangs moodle-dl HOT 1
- Same file with identical content gets downloaded again every time Moodle-DL is executed HOT 5
- NoneType has no len() - not downloading HOT 1
- Size estimation increases during download HOT 8
- Rework optional downloads
- Is there anyway to use it to DL all "Books" on a course? HOT 7
- The Moodle System rejected the Request [invalidprivatetoken] HOT 1
- Quizzes are not properly downloaded HOT 9
- Calendar mod fails with 'dict' object has no attribute 'append' HOT 1
- question re pip install HOT 9
- Add index to subfolders and files
- Encountering this SSL error whilst running --init HOT 4
- Download global grades from a course
- Use pyinstaller to build moodle-dl packages in CI/CD
- Investigate if we can download parts of h5p Modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-dl.