Add link to source code

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-04 19:04:43 -04:00
parent e8b93beb87
commit ffb4e6efae
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 15 additions and 9 deletions

View File

@ -12,7 +12,10 @@ def scrape(url):
our_path = re.sub(r".*://.*/", "/", request.url)
path = re.sub(r".*://.*/", "/", data.url)
print(our_path, path)
print()
print(our_path)
print(path)
print()
if our_path != path:
return f"REDIRECT {path}"
ret = []

View File

@ -32,5 +32,8 @@
<br>
{% endfor %}
{{ data[1]|safe }}
<center>
<p><a href="http://git.vern.cc/cobra/rural-dict">Source Code</a></p>
</center>
</body>
</html>