@GET('^/api/v1/get_notifications')
    @authenticated
    def get_notifications(self, request):
        limit = int(request.args["limit"][0]) if "limit" in request.args else 20
        start = request.args["start"][0] if request.args in "start" else ""
        notifications = self.db.notifications.get_notifications(start, limit)
        notification_dict = {
            "unread": self.db.notifications.get_unread_count(),
            "notifications": []
        }
        for n in notifications[::-1]:
            notification_json = {
                "id": n[0],
                "guid": n[1],
                "handle": n[2],
                "type": n[3],
                "order_id": n[4],
                "title": n[5],
                "timestamp": n[6],
                "image_hash": n[7].encode("hex"),
                "read": False if n[8] == 0 else True
            }
            notification_dict["notifications"].append(notification_json)
        request.setHeader('content-type', "application/json")
        request.write(json.dumps(sanitize_html(notification_dict), indent=4))
        request.finish()
        return server.NOT_DONE_YET
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/api/restapi.py/OpenBazaarAPI.get_notifications/swapped operands of `in`