Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LinkAhead Loan
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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
LinkAhead Loan
Commits
58fd499e
Commit
58fd499e
authored
2 weeks ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Actually remove name overrides
parent
ab894c19
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
loanpy/src/loan/confirm_loan.py
+2
-1
2 additions, 1 deletion
loanpy/src/loan/confirm_loan.py
loanpy/src/loan/manual_return.py
+2
-1
2 additions, 1 deletion
loanpy/src/loan/manual_return.py
with
4 additions
and
2 deletions
loanpy/src/loan/confirm_loan.py
+
2
−
1
View file @
58fd499e
...
...
@@ -33,7 +33,8 @@ from .box_loan import (BOX, BOX_BORROWED, DESTINATION, F_LOAN, LENT, S_LENT, S_L
def
_set_lent_box
(
loan
):
"""
Store the exact versions of borrowed items when it was delivered to the borrower.
"""
references
=
set_references_to_current_version
(
loan
.
get_property
(
BOX
).
value
)
loan
.
add_property
(
id
=
BOX
.
id
,
name
=
BOX_BORROWED
.
name
,
value
=
references
,
borrowed_prop
=
db
.
get_entity_by_name
(
BOX_BORROWED
.
name
,
role
=
"
PROPERTY
"
)
loan
.
add_property
(
id
=
borrowed_prop
.
id
,
value
=
references
,
datatype
=
db
.
LIST
(
BOX
.
name
)
if
isinstance
(
references
,
list
)
else
BOX
.
name
)
loan
.
update
()
...
...
This diff is collapsed.
Click to expand it.
loanpy/src/loan/manual_return.py
+
2
−
1
View file @
58fd499e
...
...
@@ -37,7 +37,8 @@ def _set_returned_box(loan):
This stores the version of the box that was returned by a borrower.
"""
references
=
set_references_to_current_version
(
loan
.
get_property
(
BOX_BORROWED
.
name
).
value
)
loan
.
add_property
(
id
=
BOX
.
id
,
name
=
BOX_RETURNED
.
name
,
value
=
references
,
returned_prop
=
db
.
get_entity_by_name
(
BOX_RETURNED
.
name
,
role
=
"
PROPERTY
"
)
loan
.
add_property
(
id
=
returned_prop
.
id
,
value
=
references
,
datatype
=
db
.
LIST
(
BOX
.
name
)
if
isinstance
(
references
,
list
)
else
BOX
.
name
)
...
...
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