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
Martin Mareš
Odevzdávací Systém MO
Commits
8e536825
Commit
8e536825
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Import: log_event_name zobecněno na log_details
parent
b7b3a2dd
No related branches found
No related tags found
1 merge request
!32
Dávkové bodování
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/imports.py
+6
-6
6 additions, 6 deletions
mo/imports.py
with
6 additions
and
6 deletions
mo/imports.py
+
6
−
6
View file @
8e536825
...
...
@@ -49,7 +49,7 @@ class Import:
row_class
:
Type
[
mo
.
csv
.
Row
]
row_example
:
mo
.
csv
.
Row
log_msg_prefix
:
str
log_
event_name
:
str
log_
details
:
Any
# Interní: Stav importu
place_cache
:
Dict
[
str
,
db
.
Place
]
...
...
@@ -296,13 +296,13 @@ class Import:
mo
.
util
.
log
(
type
=
db
.
LogType
.
contest
,
what
=
self
.
contest
.
contest_id
,
details
=
{
'
action
'
:
'
import
'
}
details
=
self
.
log_details
,
)
elif
self
.
round
is
not
None
:
mo
.
util
.
log
(
type
=
db
.
LogType
.
round
,
what
=
self
.
round
.
round_id
,
details
=
{
'
action
'
:
self
.
log_event_name
}
details
=
self
.
log_details
,
)
else
:
assert
False
...
...
@@ -403,7 +403,7 @@ class ContestImport(Import):
rok_naroz
=
"
2000
"
,
)
log_msg_prefix
=
'
Účastníci
'
log_
event_name
=
'
import
'
log_
details
=
{
'
action
'
:
'
import
'
}
template_basename
=
'
sablona-ucast
'
def
setup
(
self
):
...
...
@@ -462,7 +462,7 @@ class ProctorImport(Import):
kod_mista
=
'
#3333
'
,
)
log_msg_prefix
=
'
Dozor
'
log_
event_name
=
'
import-proctors
'
log_
details
=
{
'
action
'
:
'
import-proctors
'
}
template_basename
=
'
sablona-dozor
'
def
setup
(
self
):
...
...
@@ -509,7 +509,7 @@ class JudgeImport(Import):
kod_oblasti
=
'
B
'
,
)
log_msg_prefix
=
'
Opravovatelé
'
log_
event_name
=
'
import-judges
'
log_
details
=
{
'
action
'
:
'
import-judges
'
}
template_basename
=
'
sablona-oprav
'
def
setup
(
self
):
...
...
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