Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • B baobaxia
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 67
    • Issues 67
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • NPDD
  • baobaxia
  • Issues
  • #194

Closed
Open
Created Dec 29, 2015 by Vince Tozzi@vinceOwner

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.

Assignee
Assign to
Time tracking

Data Center Comunitário Livre - DCCL