fix lowest resolution on hoursFromSeconds()
This commit is contained in:
parent
0b2abe676b
commit
06350823ea
@ -124,8 +124,8 @@ class Window:
|
|||||||
self.project_hour_labels[p][day].set_text(hrs)
|
self.project_hour_labels[p][day].set_text(hrs)
|
||||||
|
|
||||||
def hoursFromSeconds(self, secs):
|
def hoursFromSeconds(self, secs):
|
||||||
if secs < 0.6 * 60 * 60:
|
if secs < 0.1 * 60 * 60:
|
||||||
secs = 0.6 * 60 * 60;
|
secs = 0.1 * 60 * 60;
|
||||||
return "%.1f" % (secs / 60.0 / 60.0)
|
return "%.1f" % (secs / 60.0 / 60.0)
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user