From 62233d9fdaecc7f8ffff02f0228e72a6d7eea35a Mon Sep 17 00:00:00 2001 From: zepp Date: Thu, 25 Jul 2024 12:13:57 -0400 Subject: [PATCH] fixed some general silliness with secrets index.html is changed because it is updated when main.py is run --- index.html | 56 +++++++++++++++++++++++++++--------------------------- main.py | 3 +-- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/index.html b/index.html index bdb474f..dc55ebe 100644 --- a/index.html +++ b/index.html @@ -1,29 +1,29 @@ - - One cat per day! - - - - - - -
- -
-
- - A picture of a cat -
- - - \ No newline at end of file + + One cat per day! + + + + + + +
+ +
+
+ + A picture of a cat +
+ + + \ No newline at end of file diff --git a/main.py b/main.py index ca81ce2..8103235 100644 --- a/main.py +++ b/main.py @@ -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