mirror of
https://github.com/nikdoof/django-ett.git
synced 2025-12-17 19:59:25 +00:00
Fix segment time
This commit is contained in:
@@ -54,7 +54,7 @@ class TimeEntry(models.Model):
|
||||
updated = models.DateTimeField('Updated Date/Time', auto_now=True)
|
||||
|
||||
def get_segment_time(self):
|
||||
if segment:
|
||||
if self.segment > 0:
|
||||
return self.segment * 15
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user