Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MO-P
Odevzdávací Systém MO
Commits
634d3dc3
Commit
634d3dc3
authored
Jan 23, 2021
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Import: Když přidělujeme roli, vyplníme assigned_by
parent
9d62fee7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/imports.py
+2
-1
2 additions, 1 deletion
mo/imports.py
with
2 additions
and
1 deletion
mo/imports.py
+
2
−
1
View file @
634d3dc3
...
...
@@ -265,7 +265,8 @@ class Import:
pass
else
:
ur
=
db
.
UserRole
(
user
=
user
,
place
=
place
,
role
=
role
,
category
=
round
.
category
,
year
=
round
.
year
,
seq
=
round
.
seq
)
category
=
round
.
category
,
year
=
round
.
year
,
seq
=
round
.
seq
,
assigned_by_user
=
self
.
user
)
sess
.
add
(
ur
)
sess
.
flush
()
logger
.
info
(
f
'
Import:
{
role
.
name
.
title
()
}
user=#
{
user
.
user_id
}
place=#
{
place
.
place_id
}
user_role=#
{
ur
.
user_role_id
}
'
)
...
...
This diff is collapsed.
Click to expand it.
Martin Mareš
@mj
mentioned in commit
9646edea
·
Jan 23, 2021
mentioned in commit
9646edea
mentioned in commit 9646edea832429c5befcd036def8f29b2a734be5
Toggle commit list
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
sign in
to comment