Skip to content
Snippets Groups Projects
Commit a1f157b9 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Import: Cleanup: Typování u log_{start,end}

parent 487d2148
Branches
No related tags found
1 merge request!97Import orgů
...@@ -287,7 +287,7 @@ class Import: ...@@ -287,7 +287,7 @@ class Import:
# Definováno odvozenými třídami # Definováno odvozenými třídami
assert NotImplementedError() 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}'] args = [f'user=#{self.user.user_id}', f'fmt={self.fmt.name}']
if self.round is not None: if self.round is not None:
args.append(f'round=#{self.round.round_id}') args.append(f'round=#{self.round.round_id}')
...@@ -300,7 +300,7 @@ class Import: ...@@ -300,7 +300,7 @@ class Import:
logger.info('Import: %s ze souboru %s: %s', self.log_msg_prefix, path, " ".join(args)) 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}'] args = [f'rows=#{self.cnt_rows}']
for key, val in [ for key, val in [
('users', self.cnt_new_users), ('users', self.cnt_new_users),
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment