Skip to content

Commit

Permalink
Imports | fixing pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Mar 21, 2022
1 parent 29eee40 commit 161f842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def nested_dict_values(_dict):
yield value


def chunks(lst, n):
def chunks(lst, size):
"""Yield successive n-sized chunks from lst."""
for i in range(0, len(lst), n):
yield lst[i:i + n]
for i in range(0, len(lst), size):
yield lst[i:i + size]
2 changes: 1 addition & 1 deletion core/importers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def notify_progress(self):
service = RedisService()
service.set(self.self_task_id, self.processed)

def run(self): # pylint: disable=too-many-branches,too-many-statements
def run(self): # pylint: disable=too-many-branches,too-many-statements,too-many-locals
if self.self_task_id:
print("****STARTED SUBPROCESS****")
print(f"TASK ID: {self.self_task_id}")
Expand Down

0 comments on commit 161f842

Please sign in to comment.