def get(self, request, *args, **kwargs): compatibility = get_compatibility( key=self.installation, service=self.name, version=self.version, is_cli=False, set_config=False, ) return Response( data=compatibility.to_dict() if compatibility else {}, status=status.HTTP_200_OK, )
def get(self, request, *args, **kwargs): self.init_config() config = self.get_config() if config and config.should_check(): config.version = pkg.VERSION key = conf.get(ORGANIZATION_KEY) or get_dummy_key() config.compatibility = get_compatibility( key=key, service=PolyaxonServices.PLATFORM, version=config.version, is_cli=False, ) config.last_check = now() self.write_config(config) return Response(status=status.HTTP_200_OK)