***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Invenio Utilities TUW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
Invenio Utilities TUW
Commits
8f14076e
Commit
8f14076e
authored
3 years ago
by
Moser, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
Fix possible duplicate removal of list entries
parent
8508c7ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Modernization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
invenio_utilities_tuw/cli/files.py
+1
-1
1 addition, 1 deletion
invenio_utilities_tuw/cli/files.py
with
1 addition
and
1 deletion
invenio_utilities_tuw/cli/files.py
+
1
−
1
View file @
8f14076e
...
@@ -50,7 +50,7 @@ def get_orphaned_files(location):
...
@@ -50,7 +50,7 @@ def get_orphaned_files(location):
# filter out those files that invenio has knowledge about
# filter out those files that invenio has knowledge about
for
bucket
in
location
.
buckets
:
for
bucket
in
location
.
buckets
:
for
obj
in
bucket
.
objects
:
for
obj
in
bucket
.
objects
:
if
obj
.
file
:
if
obj
.
file
and
obj
.
file
.
uri
in
all_files
:
# an object_version without attached file_instance
# an object_version without attached file_instance
# likely denotes a soft-deleted file
# likely denotes a soft-deleted file
all_files
.
remove
(
obj
.
file
.
uri
)
all_files
.
remove
(
obj
.
file
.
uri
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment