Skip to content

Commit

Permalink
fix: correct the commit msg & table
Browse files Browse the repository at this point in the history
docs: update issue template
ci: run pylint for all files

BREAKING CHANGE: Wakatime Leaderboards
  • Loading branch information
Nicconike committed Aug 2, 2024
1 parent 899da04 commit 6d5b739
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug Report
description: Report a bug to help me improve Steam Stats
description: Report a bug to help me improve Wakatime Leaderboards
title: "Bug:"
labels: ["bug"]
assignees: "nicconike"
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ contact_links:
url: https://discord.gg/UbetHfu
about: You can join or create new discussions on Discord.
- name: Script does not work
url: https://github.com/nicconike/steam-stats/blob/master/CONTRIBUTING.md
url: https://github.com/Nicconike/Wakatime-Leaderboards/blob/master/.github/CONTRIBUTING.md
about: Before opening a new issue, please make sure to read CONTRIBUTING.md
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pylint
pylint_output=$(pylint --recursive=y api || true)
pylint_output=$(pylint --recursive=y api tests || true)
echo "$pylint_output"
score=$(echo "$pylint_output" | grep -oP 'Your code has been rated at \K[0-9]+\.[0-9]+' || echo "0.0")
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

### Public Leaderboards (Weekly)

| Ranked | Hours | Daily Avg |
| ------ | ----- | --------- |
| - | 11 hrs 36 mins | 1 hrs 39 mins |
| Ranked | Hours | Daily Avg |
| ------ | -------------- | ------------- |
| - | 11 hrs 36 mins | 1 hrs 39 mins |

### Country Leaderboard (Unknown)

| Ranked | Hours | Daily Avg |
| ------ | ----- | --------- |
| - | 11 hrs 36 mins | 1 hrs 39 mins |
| Ranked | Hours | Daily Avg |
| ------ | -------------- | ------------- |
| - | 11 hrs 36 mins | 1 hrs 39 mins |

### Top Language (Python)

| Ranked | Hours | Daily Avg |
| ------ | ----- | --------- |
| 4173 | 2 hrs 45 mins | 23 mins |
| Ranked | Hours | Daily Avg |
| ------ | ------------- | --------- |
| 4173 | 2 hrs 45 mins | 23 mins |


<!-- Wakatime-End -->
Expand All @@ -51,7 +51,7 @@ Add below comment in your markdown file for Wakatime Leaderboards Stats
```
***
## Setup with Example
After completing the steps mentioned in the [Prerequisites](#Prerequisites), you have to save all the mentioned keys(except markdown comments) like Steam API Key, Steam-ID, Custom-ID as Secrets in your Github repo's settings.
After completing the steps mentioned in the [Prerequisites](#Prerequisites), you have to save all the mentioned keys(except markdown comments) like Wakatime API Key as Secrets in your Github repo's settings.

> Repo Settings -> Security -> Secrets and Variables -> Actions -> Add in Repository Secrets
Expand Down
4 changes: 2 additions & 2 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def format_leaderboard_data(leaderboards):
# Helper function to create table
def create_table(title, data):
table = "### " + title + "\n\n"
table += "| Ranked | Hours | Daily Avg |\n"
table += "| ------ | ----- | --------- |\n"
table += "| Ranked | Hours Coded | Daily Avg |\n"
table += "| ------ | ----------- | --------- |\n"
table += "| " + data['rank'] + " | " + \
data['hours'] + " | " + data['daily_avg'] + " |\n\n"
return table
Expand Down
2 changes: 1 addition & 1 deletion api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def commit_to_github(repo, files_to_update):
tree_elements, repo.get_git_tree(last_commit_sha))

new_commit = repo.create_git_commit(
message="chore: Update Steam Stats",
message="chore: Update Wakatime Leaderboards",
tree=new_tree,
parents=[repo.get_git_commit(last_commit_sha)]
)
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 6d5b739

Please sign in to comment.