forked from ActivityWatch/activitywatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple changes, see commit description.
- Added donations badge to README - Created platforms table in README - Added collect_stats.py script - Fixed issue in logcrawler.py script - Updatd aw-watcher-afk and aw-watcher-web submodules
- Loading branch information
Showing
5 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aw-watcher-web
updated
5 files
+19 −6 | app/client.js | |
+1 −1 | app/eventPage.js | |
+2 −2 | app/popup_files/popup.js | |
+1 −1 | manifest.json | |
+1 −1 | media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import re | ||
|
||
import requests | ||
|
||
|
||
def downloads(): | ||
r = requests.get("https://api.github.com/repos/ActivityWatch/activitywatch/releases") | ||
d = r.json() | ||
|
||
downloads = 0 | ||
for release in d: | ||
print("Release: ", release["tag_name"]) | ||
for asset in release["assets"]: | ||
platform = re.findall("(macos|darwin|linux|windows)", asset["name"])[0] | ||
count = asset["download_count"] | ||
print(" - {}: {}".format(platform, count)) | ||
|
||
downloads += asset["download_count"] | ||
|
||
print("Total: ", downloads) | ||
|
||
|
||
def stars(): | ||
r = requests.get("https://api.github.com/repos/ActivityWatch/activitywatch") | ||
d = r.json() | ||
|
||
print("Stars: ", d["stargazers_count"]) | ||
|
||
stars() | ||
downloads() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters