From de727f264551dcb744416c333d323ebb12fd9f80 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 11 Aug 2021 13:40:37 +0200 Subject: [PATCH] pdbs --- ereuse_devicehub/resources/documents/documents.py | 6 +++--- ereuse_devicehub/resources/documents/schemas.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index 079d763d..c8507098 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -33,6 +33,8 @@ from ereuse_devicehub.resources.documents.device_row import (DeviceRow, StockRow from ereuse_devicehub.resources.lot import LotView from ereuse_devicehub.resources.lot.models import Lot from ereuse_devicehub.resources.hash_reports import insert_hash, ReportHash, verify_hash +from ereuse_devicehub.resources.documents.models import RecycleDocument +from ereuse_devicehub.resources.documents.schemas import RecycleDocument as sh_document class Format(enum.Enum): @@ -289,9 +291,7 @@ class RecycleDocumentView(View): """ def post(self): - from flask import jsonify - from ereuse_devicehub.resources.documents.models import RecycleDocument - from ereuse_devicehub.resources.documents.schemas import RecycleDocument as sh_document + # import pdb; pdb.set_trace() data = request.get_data() schema = sh_document() doc = schema.loads(data) diff --git a/ereuse_devicehub/resources/documents/schemas.py b/ereuse_devicehub/resources/documents/schemas.py index 4ead41f0..66bc2f20 100644 --- a/ereuse_devicehub/resources/documents/schemas.py +++ b/ereuse_devicehub/resources/documents/schemas.py @@ -36,7 +36,7 @@ class DataWipeDocument(Thing): class RecycleDocument(Thing): - __doc__ = m.DataWipeDocument.__doc__ + __doc__ = m.RecycleDocument.__doc__ file_hash = SanitizedStr(data_key='hash', default='', description=m.RecycleDocument.file_hash.comment,