Media are not always marked as local even though file is in git-annex
Created by: agger-magenta
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.