Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ITP2 - Reflection tool
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Sondre Alfnes
ITP2 - Reflection tool
Commits
46e31ec5
Commit
46e31ec5
authored
1 year ago
by
Sondre Alfnes
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
c5c5cb9a
No related branches found
No related tags found
1 merge request
!106
Refactor backend
Pipeline
#286279
failed
1 year ago
Stage: lint
Stage: build
Stage: duplicate-check
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/api/units.py
+1
-1
1 addition, 1 deletion
backend/api/units.py
with
1 addition
and
1 deletion
backend/api/units.py
+
1
−
1
View file @
46e31ec5
...
...
@@ -101,7 +101,7 @@ async def update_unit(request: Request, unit_id: int, ref: schemas.UnitCreate, d
)
async
def
delete_unit
(
unit_id
:
int
,
ref
:
schemas
.
UnitDelete
,
request
:
Request
,
db
):
async
def
delete_unit
(
request
:
Request
,
unit_id
:
int
,
ref
:
schemas
.
UnitDelete
,
db
):
user
=
request
.
session
.
get
(
"
user
"
)
uid
:
str
=
user
.
get
(
"
uid
"
)
unit
=
crud
.
get_unit
(
db
,
unit_id
)
...
...
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