Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
anselm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
vaclab
anselm
Commits
0e3d67e4
Commit
0e3d67e4
authored
6 years ago
by
Wact B. Prot
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
de114d62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
anselm/db.py
+0
-5
0 additions, 5 deletions
anselm/db.py
with
0 additions
and
5 deletions
anselm/db.py
+
0
−
5
View file @
0e3d67e4
...
...
@@ -111,7 +111,6 @@ class DB(System):
return
[]
def
get_doc
(
self
,
id
):
doc
=
self
.
db
[
id
]
if
doc
:
return
doc
...
...
@@ -120,13 +119,11 @@ class DB(System):
return
None
def
set_doc
(
self
,
doc
):
self
.
log
.
info
(
"
try to save document
"
)
res
=
self
.
db
.
save
(
doc
)
self
.
log
.
info
(
res
)
def
replace_defaults
(
self
,
task
,
defaults
):
strtask
=
json
.
dumps
(
task
)
if
isinstance
(
defaults
,
dict
):
for
key
,
val
in
defaults
.
items
():
...
...
@@ -147,7 +144,6 @@ class DB(System):
return
task
def
choose_task
(
self
,
task_name
,
line
):
doc_id
=
self
.
aget
(
'
doc_id
'
,
line
)
if
doc_id
:
task_db
=
self
.
get_task
(
doc_id
,
task_name
)
...
...
@@ -172,7 +168,6 @@ class DB(System):
self
.
log
.
error
(
"
line {} contains no doc_id
"
)
def
save_results
(
self
):
lines
=
self
.
get_lines
(
'
cal_id
'
)
for
line
in
lines
:
doc_path
=
self
.
aget
(
"
doc_path
"
,
line
)
...
...
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