dey 0.2.2__tar.gz → 0.2.3__tar.gz

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.
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dey
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Terminal time tracker
5
5
  Author-email: David Woodburn <david.woodburn@icloud.com>
6
6
  License-Expression: MIT
7
+ Project-URL: Homepage, https://gitlab.com/davidwoodburn/dey
8
+ Project-URL: Bug Tracker, https://gitlab.com/davidwoodburn/dey/-/issues
7
9
  Requires-Python: >=3.7
8
10
  Description-Content-Type: text/markdown
9
11
  License-File: LICENSE
@@ -691,6 +691,7 @@ def report_day(jobs, logs, tails):
691
691
  ib = round((log[3] - logs_concluded[0][1]) / inc)
692
692
  for i in range(ia, ib + 1):
693
693
  bar[i] = (idx % 6) + 1
694
+ bar = bar[:ib+1]
694
695
 
695
696
  # Translate the bar graph.
696
697
  s = ""
@@ -708,9 +709,9 @@ def report_day(jobs, logs, tails):
708
709
  s += RESET
709
710
 
710
711
  # Print the bar graph.
711
- y, res = divmod(date, 10000)
712
- m, d = divmod(res, 100)
713
- print(f" {y:04d}-{m:02d}-{d:02d} {s}")
712
+ ha, ma = divmod(logs_concluded[0][1], 60)
713
+ hb, mb = divmod(logs_concluded[-1][3], 60)
714
+ print(f" {ha:02d}:{ma:02d} {s} {hb:02d}:{mb:02d}")
714
715
 
715
716
  # Print the totals.
716
717
  for j in range(J):
@@ -1,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dey
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Terminal time tracker
5
5
  Author-email: David Woodburn <david.woodburn@icloud.com>
6
6
  License-Expression: MIT
7
+ Project-URL: Homepage, https://gitlab.com/davidwoodburn/dey
8
+ Project-URL: Bug Tracker, https://gitlab.com/davidwoodburn/dey/-/issues
7
9
  Requires-Python: >=3.7
8
10
  Description-Content-Type: text/markdown
9
11
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dey"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Terminal time tracker"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -15,5 +15,9 @@ requires-python = ">=3.7"
15
15
  dependencies = [
16
16
  ]
17
17
 
18
+ [project.urls]
19
+ Homepage = "https://gitlab.com/davidwoodburn/dey"
20
+ "Bug Tracker" = "https://gitlab.com/davidwoodburn/dey/-/issues"
21
+
18
22
  [project.scripts]
19
23
  dey = "dey.cli:main"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes