Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

way to download deleted folder #43

Closed
HumHongeKamyaab opened this issue Aug 25, 2020 · 3 comments
Closed

way to download deleted folder #43

HumHongeKamyaab opened this issue Aug 25, 2020 · 3 comments

Comments

@HumHongeKamyaab
Copy link

Is there any way to download accidentally deleted course folder without downloading everything else (or new configuration).
$ python3 main.py
doesn't support it.

@C0D3D3V
Copy link
Owner

C0D3D3V commented Aug 25, 2020

There are several ways to re-download a course folder that was accidentally deleted.

I think the best option is to copy your configuration to another folder and use --config to select only the course you want to download again, don't forget to run the downloader in the new folder. Finally you can copy the downloaded folder back into your old main folder.

Alternatively, you can look at thee
--manage-database option, or use a Sql-Lite browser to delete entries from the database which should be downloaded again.

@HumHongeKamyaab
Copy link
Author

HumHongeKamyaab commented Aug 25, 2020

@C0D3D3V Thanks for the reply.

I like the sqlitebrowser option above. But it would be better if it can be done automatically.
I was thinking of a command line option like --checkout as git checkout and --status as git status in the main.py, so that it can be done git way.

@C0D3D3V
Copy link
Owner

C0D3D3V commented Aug 26, 2020

I think currently it is not a good idea to add git to the project. It's not hard to wrap the script to create a new commit after each execution, if new data is available. In general, this brings a lot of overhead. But please create a new issue if you think it makes sense to add a function that automatically creates git commits (and initializes a repo if necessary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants