Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
0ac43bb3
Verified
Commit
0ac43bb3
authored
4 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Modernizing zip files.
parent
97ebd7f5
No related branches found
No related tags found
2 merge requests
!147
Release 0.15.1
,
!146
Fix zip file export
Pipeline
#58004
passed
4 months ago
Stage: setup
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server_side_scripting/ext_file_download/zip_files.py
+2
-4
2 additions, 4 deletions
src/server_side_scripting/ext_file_download/zip_files.py
with
2 additions
and
4 deletions
src/server_side_scripting/ext_file_download/zip_files.py
+
2
−
4
View file @
0ac43bb3
...
...
@@ -71,9 +71,7 @@ def collect_files_in_zip(ids, table):
# download and add all files
for
file_id
in
ids
:
try
:
tmp
=
db
.
execute_query
(
"
FIND FILE WITH ID={a:}
"
.
format
(
a
=
file_id
),
unique
=
True
)
tmp
=
db
.
get_entity_by_id
(
file_id
,
role
=
"
FILE
"
)
except
EntityDoesNotExistError
as
e
:
# TODO
# Current behavior: script terminates with error if just one
...
...
@@ -82,7 +80,7 @@ def collect_files_in_zip(ids, table):
# ids, but the user should be informed about the missing files.
# How should we do this?
logger
=
logging
.
getLogger
(
"
caosadvancedtools
"
)
logger
.
error
(
"
Did not find
Entity
with ID={}.
"
.
format
(
logger
.
error
(
"
Did not find
File
with ID={}.
"
.
format
(
file_id
))
raise
e
...
...
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