8000
Skip to content

Improved collaborator code. - #4504

Merged
MatthiasWiesmann merged 3 commits into
mainfrom
missing_collaborator
Oct 16, 2025
Merged

Improved collaborator code.#4504
MatthiasWiesmann merged 3 commits into
mainfrom
missing_collaborator

Conversation

@MatthiasWiesmann
Copy link
Copy Markdown
Contributor
  • Simplified code.
  • Error reporting gives the domain of the missing collaborator.
  • Migrated code to use f-formats.

* Simplified code.
* Error reporting gives the domain of the missing collaborator.
* Migrated code to use f-formats.
cls.createCollaborator(file_path)
log.info("Loaded %s collaborators" % len(cls.COLLABORATORS))
num_collaborators = len(cls.COLLABORATORS)
log.info(f"Loaded {num_collaborators} collaborators")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can put entire expressions in the {}, so that it could be

log.info(f"Loaded {len(cls.COLLABORATORS)} collaborators")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

log.info("Loaded %s contributors" % len(cls.CONTRIBUTORS))
cls.createContributor(row.val)
num_contributors = len(cls.CONTRIBUTORS)
log.info(f"Loaded {num_contributors} contributors")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto with expressions in f-strings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread software/SchemaTerms/sdotermsource.py Outdated
def getAcknowledgements(self) -> typing.Sequence[str]:
if not self.aks:
self.aks = []
aks = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we use acks that hurts less?

@MatthiasWiesmann
MatthiasWiesmann merged commit 6c1d28c into main Oct 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0