From 0a90ffb24c2641072c973830688e12514f9033d6 Mon Sep 17 00:00:00 2001 From: Caleb Ely Date: Fri, 21 Jun 2024 14:07:57 -0400 Subject: [PATCH] v1.4.1 --- .gitignore | 1 + CHANGES.md | 2 +- src/views/embed.py | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c30b085..c1b3171 100644 --- a/.gitignore +++ b/.gitignore @@ -114,3 +114,4 @@ secrets/ *.jpg .env requirements.txt +!secrets/api.json diff --git a/CHANGES.md b/CHANGES.md index 3811d3b..e6d9290 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,6 @@ # 1.4.1 -_Released TDB_ +_Released June 21, 2024_ - Add ability to get linkrot history for an individual entry - Fix error when deleting an entry diff --git a/src/views/embed.py b/src/views/embed.py index 447888a..13ff5cb 100644 --- a/src/views/embed.py +++ b/src/views/embed.py @@ -1,11 +1,10 @@ from flask import Response, make_response, render_template, request from webargs.flaskparser import use_kwargs +from src.blueprints import route_embed from src.core.database import weblink as db from src.core.models.WebLink import Entry, RingArgs -from ..blueprints import route_embed - __all__ = ["embed"] @@ -32,7 +31,6 @@ def embed(**kwargs) -> Response: # Render the JavaScript module, taking care to indicate it's a JS file # so browsers correctly load it - # TODO: Consider adding a pre-rendered HTML response resp = make_response(render_template("webring-embed.js", all_links=all_links)) resp.mimetype = "text/javascript" return resp