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
a1f157b9
Commit
a1f157b9
authored
3 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Import: Cleanup: Typování u log_{start,end}
parent
487d2148
No related branches found
No related tags found
1 merge request
!97
Import orgů
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/imports.py
+2
-2
2 additions, 2 deletions
mo/imports.py
with
2 additions
and
2 deletions
mo/imports.py
+
2
−
2
View file @
a1f157b9
...
...
@@ -287,7 +287,7 @@ class Import:
# Definováno odvozenými třídami
assert
NotImplementedError
()
def
log_start
(
self
,
path
):
def
log_start
(
self
,
path
)
->
None
:
args
=
[
f
'
user=#
{
self
.
user
.
user_id
}
'
,
f
'
fmt=
{
self
.
fmt
.
name
}
'
]
if
self
.
round
is
not
None
:
args
.
append
(
f
'
round=#
{
self
.
round
.
round_id
}
'
)
...
...
@@ -300,7 +300,7 @@ class Import:
logger
.
info
(
'
Import: %s ze souboru %s: %s
'
,
self
.
log_msg_prefix
,
path
,
"
"
.
join
(
args
))
def
log_end
(
self
):
def
log_end
(
self
)
->
None
:
args
=
[
f
'
rows=#
{
self
.
cnt_rows
}
'
]
for
key
,
val
in
[
(
'
users
'
,
self
.
cnt_new_users
),
...
...
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