Python Requirements Update (#29516)
* chore: Updating Python Requirements * fix: fix pylint issues Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
This commit is contained in:
committed by
GitHub
parent
5d5a11fc16
commit
bb20b17428
@@ -77,7 +77,7 @@ def validate_and_link_program_enrollments(program_uuid_string, linkage_text):
|
||||
(item.get('external_key') or '').strip(): (item['username'] or '').strip()
|
||||
for item in reader
|
||||
}
|
||||
if not (all(ext_key_to_username.keys()) and all(ext_key_to_username.values())):
|
||||
if not (all(ext_key_to_username.keys()) and all(ext_key_to_username.values())): # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
return [], [
|
||||
"All linking lines must be in the format 'external_user_key,lms_username'"
|
||||
]
|
||||
@@ -87,7 +87,7 @@ def validate_and_link_program_enrollments(program_uuid_string, linkage_text):
|
||||
successes = [
|
||||
str(item)
|
||||
for item in ext_key_to_username.items()
|
||||
if item[0] not in link_errors.keys()
|
||||
if item[0] not in link_errors.keys() # lint-amnesty, pylint: disable=consider-iterating-dictionary
|
||||
]
|
||||
errors = [message for message in link_errors.values()] # lint-amnesty, pylint: disable=unnecessary-comprehension
|
||||
return successes, errors
|
||||
|
||||
Reference in New Issue
Block a user