github-streak 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ghstreak/streak.py CHANGED
@@ -103,7 +103,10 @@ def main():
103
103
  result = analyze_streaks(data)
104
104
  print(f"Current streak: {result['current_streak']} days")
105
105
  if result['previous_streak'] > 0:
106
- print(f"Previous streak: {result['previous_streak']} days, ended on {result['last_active_day']}")
106
+ if result['last_active_day']:
107
+ print(f"Previous streak: {result['previous_streak']} days, ended on {result['last_active_day']}")
108
+ else:
109
+ print(f"Previous streak: {result['previous_streak']} days")
107
110
  else:
108
111
  print("No previous streak found")
109
112
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: github-streak
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: CLI tool to track your GitHub contribution streaks
5
5
  Author: Deven Mistry
6
6
  Project-URL: Homepage, https://github.com/deven367/github-streak
@@ -25,7 +25,7 @@ A simple CLI tool to track your GitHub contribution streaks.
25
25
  ## Installation
26
26
 
27
27
  ```bash
28
- pip install ghstreak
28
+ pip install github-streak
29
29
  ```
30
30
 
31
31
  ## Usage
@@ -0,0 +1,7 @@
1
+ ghstreak/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ ghstreak/streak.py,sha256=y9IPxyw9ZWoeSUMjo1BMXkNFmUMM5xsMRKhV4U7a7cE,3512
3
+ github_streak-0.1.1.dist-info/METADATA,sha256=eo0mLFUpL5Zzkxbh9L-R2dmtTexFxG2hmgqT67GPR6c,1492
4
+ github_streak-0.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
+ github_streak-0.1.1.dist-info/entry_points.txt,sha256=prQ9oElrS68913jpoKqz1OAj0tlIkYvFWQIcOWomjh0,50
6
+ github_streak-0.1.1.dist-info/top_level.txt,sha256=cpbUjQE2f5SeZpD6kgfQC7Z0GMxubFNDjeUIMLTbClY,9
7
+ github_streak-0.1.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- ghstreak/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ghstreak/streak.py,sha256=gEDgyxN4qJQVjlW42-NJezwhCnGEnW1_Kds75QrurQM,3384
3
- github_streak-0.1.0.dist-info/METADATA,sha256=-d-G9LB9S2DcROEq8y-9luAAl_8uFj1kBguIuEel_VY,1487
4
- github_streak-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
- github_streak-0.1.0.dist-info/entry_points.txt,sha256=prQ9oElrS68913jpoKqz1OAj0tlIkYvFWQIcOWomjh0,50
6
- github_streak-0.1.0.dist-info/top_level.txt,sha256=cpbUjQE2f5SeZpD6kgfQC7Z0GMxubFNDjeUIMLTbClY,9
7
- github_streak-0.1.0.dist-info/RECORD,,