Remove rating packages/materials.

Online teams decided not to support ratings anymore, making this a rather useless feature in the upcoming release.

CURA-7606
This commit is contained in:
Remco Burema 2020-07-22 12:51:20 +02:00
parent 302e0c6277
commit 51a13675a5
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
6 changed files with 2 additions and 226 deletions

View file

@ -151,13 +151,6 @@ class Toolbox(QObject, Extension):
self._package_used_materials = [] # type: List[Tuple[GlobalStack, str, str]]
self._package_used_qualities = [] # type: List[Tuple[GlobalStack, str, str]]
@pyqtSlot(str, int)
def ratePackage(self, package_id: str, rating: int) -> None:
url = "{base_url}/packages/{package_id}/ratings".format(base_url = CloudApiModel.api_url, package_id = package_id)
data = "{\"data\": {\"cura_version\": \"%s\", \"rating\": %i}}" % (Version(self._application.getVersion()), rating)
self._application.getHttpRequestManager().put(url, data = data.encode(), scope = self._json_scope)
def getLicenseDialogPluginFileLocation(self) -> str:
return self._license_dialog_plugin_file_location