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

Media are not always marked as local even though file is in git-annex #194

Open
agger-magenta opened this issue Dec 29, 2015 · 0 comments
Open

Comments

@agger-magenta
Copy link
Contributor

Even though file is downloaded (i.e., media is local), it still has is_local=False.

I wrote this small program to run once in a while:

from media.models import Media

ms = Media.objects.filter(is_local=False, is_requested=True)
for m in ms:
    m.set_is_local()
    if m.is_local:
        m.save()

This should not be necessary, i.e. is_local should be updated when the download is done, following the request and running of process_requests.sh.

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

No branches or pull requests

2 participants