From 79ecd8db81bb04f83b2b271e56bbea85b6c741c3 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Tue, 14 Oct 2025 10:42:40 -0500 Subject: [PATCH] renames --- README.md | 4 ++-- src/server/README.md | 6 ++--- src/server/app.py | 4 ++-- src/website/index.html | 52 +++++++++++++++++++++--------------------- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index dd04f2a..d520e11 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Red Head +# red head A responsive Reddit-like application with infinite scroll functionality that displays the latest Reddit articles. @@ -61,4 +61,4 @@ To connect to a real Reddit API: The application is fully responsive and will adapt to: - Desktop: Grid layout with 2-3 columns based on screen width - Tablet: Reduced grid columns -- Mobile: Single column layout with appropriate spacing +- Mobile: Single column layout with appropriate spacing \ No newline at end of file diff --git a/src/server/README.md b/src/server/README.md index 9baecd2..c3babe3 100644 --- a/src/server/README.md +++ b/src/server/README.md @@ -1,6 +1,6 @@ -# Reddit Clone API Server +# red head API Server -A Python Flask server that serves data for the Reddit clone application. +A Python Flask server that serves data for the red head application. ## Endpoints @@ -96,4 +96,4 @@ You can test the endpoints directly using curl or a browser: - `http://localhost:5000/posts` - Get initial posts - `http://localhost:5000/posts/more?count=10` - Get more posts starting from index 10 -- `http://localhost:5000/posts/total` - Get total post count +- `http://localhost:5000/posts/total` - Get total post count \ No newline at end of file diff --git a/src/server/app.py b/src/server/app.py index afe2a2e..fd300f8 100644 --- a/src/server/app.py +++ b/src/server/app.py @@ -7,7 +7,7 @@ app = Flask(__name__) script_dir = os.path.dirname(os.path.abspath(__file__)) # Import our archive parser -from parse_archive import ArchiveParser +from .parse_archive import ArchiveParser # Initialize the archive parser archive_parser = ArchiveParser() @@ -46,7 +46,7 @@ def get_total_posts(): # Get total from archive parser total = archive_parser.get_total_posts() return jsonify({"total": total}) - except Exception as e: + except Exception: return jsonify({"error": "Failed to fetch total count"}), 500 diff --git a/src/website/index.html b/src/website/index.html index 655502b..eec5189 100644 --- a/src/website/index.html +++ b/src/website/index.html @@ -1,32 +1,32 @@ - + - - - - Reddit Clone - - - -
-
-

Reddit Clone

-
+ + + + Red Head + + + +
+
+

Red Head

+
-
-
- -
+
+
+ +
- + - -
-
+ + +
- - + +