Skip to content

Commit

Permalink
fix useless set addition
Browse files Browse the repository at this point in the history
  • Loading branch information
LoannPeurey committed Feb 12, 2025
1 parent b149745 commit d79381b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChildProject/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def dict_summary(self):
self.read()
ages = self.compute_ages()
languages = (set(self.children['languages'].apply(
lambda x: [name.split(' ')[0] for name in x.split(';')]).explode()) if 'languages' in self.children.columns else set() +
lambda x: [name.split(' ')[0] for name in x.split(';')]).explode()) if 'languages' in self.children.columns else
set(self.children['language'].apply(lambda x: x.split(' ')[0])) if 'language' in self.children.columns else set())

record = {
Expand Down

0 comments on commit d79381b

Please sign in to comment.