From 20fc9ded06d377bb7cf775e3651b44bfbf385f29 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 4 May 2022 17:58:14 +0200 Subject: [PATCH] fix url response --- ereuse_devicehub/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/api/views.py b/ereuse_devicehub/api/views.py index 3516c79e..ff5bd014 100644 --- a/ereuse_devicehub/api/views.py +++ b/ereuse_devicehub/api/views.py @@ -63,7 +63,7 @@ class InventoryView(LoginMix, SnapshotMix): db.session.commit() self.response = jsonify( { - 'url': snapshot.device.url, + 'url': snapshot.device.url.to_text(), 'dhid': snapshot.device.devicehub_id, 'sid': snapshot.sid, }