Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dimitri Podborski
AutomationTools
Commits
564852f0
Commit
564852f0
authored
Feb 12, 2021
by
Dimitri Podborski
Browse files
jump over docs which are not found
parent
b96339fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
564852f0
...
...
@@ -36,7 +36,7 @@ deactivate
`systems.py`
is a script which is intended to be used in the Systems group. It takes a CSV file as an input and allows you to:
1.
Print information about input documents on MDMS and GitLab (optional):
e.g.:
`python systems.py -m m55958,m55959,m56121 -p FileFormat/CENC`
e.g.:
`python systems.py -m m55958,m55959,m56121 -p FileFormat/CENC
--meeting 133
`
2.
Open issues based on the information provided in a CSV file:
e.g.:
`python systems.py --csv Contribs.csv -i`
3.
Generate an output document based on the information provided in a CSV file. Use a template (optional) as a basis:
...
...
systems.py
View file @
564852f0
...
...
@@ -39,7 +39,8 @@ def print_infos(docs, project_url_or_path, gitlab_projects, input_docs):
print
(
'MDMS metadata'
)
document
=
helpers
.
find_document
(
input_docs
,
'm'
+
doc
)
if
not
document
:
print
(
' Document not found in the provided meeting. Try updating the database (-u option).'
)
print
(
' Document not found. Try updating the database (-u) or select another meeting (--meeting).'
)
continue
else
:
details
=
mdms
.
get_document_details
(
document
[
'mdms_id'
])
if
details
is
None
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment