fixed some general silliness with secrets index.html is changed because it is updated when main.py is run

This commit is contained in:
emma 2024-07-25 12:13:57 -04:00
parent 2b5a4467ec
commit 62233d9fda
2 changed files with 29 additions and 30 deletions

View File

@ -20,10 +20,10 @@
</header>
<main>
<!-- a more descriptive alt text is not possible, I can only know ahead of time that one or more catss will be in the image -->
<img class = "cat-img" src=img/cat2024-07-25-08:58:14.jpg alt="A picture of a cat">
<img class = "cat-img" src=img/cat2024-07-25-12:12:20.jpg alt="A picture of a cat">
</main>
<footer>
<p>Made by <a href="https://zepp.omg.lol" target="_blank" rel="noopener noreferrer">zepp</a> for the love of cats. </p>
</footer>
</body>
</htmL>
</htmL>

View File

@ -19,8 +19,7 @@ def get_image_url():
# api key gets you access to more cats however, which is purrfect for our needs
api_key = ""
with open(".secrets", "r") as f:
api_key = f.readlines()
api_key = api_key[0].strip("\n")
api_key = f.readline()
# I ask for 10 cats because I don't want an animated gif to use as the cat image of the day
# I'm specifically looking for a jpg, and may look for specific image dimeensions as well in the future