Skip to content

Commit

Permalink
Path correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jun 5, 2024
1 parent 03a998f commit dbad4d7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quality Check
name: Pylint

on:
schedule:
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🛠️Work in Progress 🚧|🚧 Please come back later⚒️
[![Steam Stats](https://github.com/Nicconike/Steam-Stats/actions/workflows/steam-stats.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/steam-stats.yml)
[![Quality Check](https://github.com/Nicconike/Steam-Stats/actions/workflows/quality-check.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/quality-check.yml)
[![Pylint](https://github.com/Nicconike/Steam-Stats/actions/workflows/pylint.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/pylint.yml)
[![CodeQL](https://github.com/Nicconike/Steam-Stats/actions/workflows/github-code-scanning/codeql/badge.svg?branch=master)](https://github.com/Nicconike/Steam-Stats/actions/workflows/github-code-scanning/codeql)
![pylint](https://img.shields.io/badge/PyLint-10.00-brightgreen?logo=python&logoColor=white)
[![Visitor Badge](https://badges.pufler.dev/visits/nicconike/steam-stats)](https://badges.pufler.dev)
Expand All @@ -12,13 +12,13 @@
2. **Github API Token:**
1. Goto your Github profile -> Settings -> Developer Settings -> Personal Access Tokens -> Tokens(Classic) or just click [here](https://github.com/settings/tokens)
2. Generate new token -> Generate new token(classic)
3. Select scopes -> repo and workflow only
3. Select scopes -> repo and workflow ==only==
4. Set a reasonable expiration date
3. **Steam ID:** You can get your 64-bit Steam id (SteamID64 - 17 digit number) by clicking on your profile name in the top right corner in steam desktop client, select "Account Details" and your Steam ID will be displayed directly under your account name
4. **Steam Custom ID:** Open the Steam desktop application, click on your profile name in the top right corner. Select "View Profile" and your custom URL will be displayed in the URL bar. From this url you will know your Steam Custom ID

### Samples/Features
1. Steam Player Summary
### Features
1. Steam Player Summary[^1]
2. Recently Played Games from Steam in the Last 2 Weeks
3. Steam Workshop Stats (If Available)

Expand All @@ -30,3 +30,5 @@
<!-- Steam-Workshop start -->
![Steam Summary](https://github.com/Nicconike/Steam-Stats/blob/master/assets/steam_workshop_stats.png)
<!-- Steam-Workshop end -->

[^1]: Unfortunately Steam API doesn't support Web Sockets so the status cannot be updated as soon the status changes for steam user profile
54 changes: 0 additions & 54 deletions action.yml

This file was deleted.

18 changes: 9 additions & 9 deletions api/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ def generate_card_for_player_summary(player_data):
</body>
</html>
"""
with open("../assets/steam_summary.html", "w", encoding="utf-8") as file:
with open("assets/steam_summary.html", "w", encoding="utf-8") as file:
file.write(html_content)

convert_html_to_png("../assets/steam_summary.html",
"../assets/steam_summary.png", ".card")
convert_html_to_png("assets/steam_summary.html",
"assets/steam_summary.png", ".card")

return (
"![Steam Summary]"
Expand Down Expand Up @@ -258,11 +258,11 @@ def generate_card_for_played_games(games_data):
</html>
"""

with open("../assets/recently_played_games.html", "w", encoding="utf-8") as file:
with open("assets/recently_played_games.html", "w", encoding="utf-8") as file:
file.write(html_content)

convert_html_to_png("../assets/recently_played_games.html",
"../assets/recently_played_games.png", ".card")
convert_html_to_png("assets/recently_played_games.html",
"assets/recently_played_games.png", ".card")

return (
"![Steam Summary]"
Expand Down Expand Up @@ -346,11 +346,11 @@ def generate_card_for_steam_workshop(workshop_stats):
</body>
</html>
"""
with open("../assets/steam_workshop_stats.html", "w", encoding="utf-8") as file:
with open("assets/steam_workshop_stats.html", "w", encoding="utf-8") as file:
file.write(html_content)

convert_html_to_png("../assets/steam_workshop_stats.html",
"../assets/steam_workshop_stats.png", ".card")
convert_html_to_png("assets/steam_workshop_stats.html",
"assets/steam_workshop_stats.png", ".card")

return (
"![Steam Summary]"
Expand Down
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
LOG_SCALE = os.getenv("LOG_SCALE", "false").lower() == "true"


def update_readme(markdown_data, start_marker, end_marker, readme_path="../README.md"):
def update_readme(markdown_data, start_marker, end_marker, readme_path="README.md"):
"""Updates the README.md file with the provided Markdown content within specified markers."""
# Read the current README content
with open(readme_path, "r", encoding="utf-8") as file:
Expand Down

1 comment on commit dbad4d7

@vercel
Copy link

@vercel vercel bot commented on dbad4d7 Jun 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.