docs: def get_modification_by_hash(self, sha512: str) -> Optional[Modification]:
          """Get a modification by a SHA512 hash."""
          return self.session.query(Modification).filter(Modification.sha512 == sha512).one_or_none()