diff --git a/update_profile.py b/update_profile.py index 1c2737d..c4fe76d 100644 --- a/update_profile.py +++ b/update_profile.py @@ -56,12 +56,11 @@ def collect_gitea_data(): "release_count": repo.get("release_count", 0), }) - return { "username": USERNAME, "version": version_string, "uptime": get_uptime(), - "repos": repos or [] + "repos": repos or [], } def do_readme_parse(): @@ -69,7 +68,8 @@ def do_readme_parse(): storage_used = sum(repo["size"] for repo in data["repos"]) languages_used = set(repo["language"] for repo in data["repos"] if repo["language"] != "N/A") username = data["username"].capitalize() if data["username"] else "Unknown User" - + + md = f"# {username}'s Developer Hub\n\n" md += f"## Welcome to {username}'s Gitea Developer Hub! This is a collection of repositories and projects that I have created and maintained on my Gitea instance. Here you can find various projects that I have worked on, ranging from personal projects to open-source contributions.\n\n" if data["repos"]: @@ -156,5 +156,5 @@ def debug_request(): print("!"*30) if __name__ == "__main__": - debug_request() # Uncomment this line to run the debug function and see the API responses and collected data - #do_readme_build() # This will build the README file using the collected data from the Gitea API and the template defined in the do_readme_parse function. \ No newline at end of file + #debug_request() # Uncomment this line to run the debug function and see the API responses and collected data + do_readme_build() # This will build the README file using the collected data from the Gitea API and the template defined in the do_readme_parse function. \ No newline at end of file