Skip to content

Commit

Permalink
Merge pull request cgwire#862 from MaximeGrosmaire/master
Browse files Browse the repository at this point in the history
Add setting to use hours instead of days for durations and estimations
  • Loading branch information
frankrousseau authored Oct 8, 2024
2 parents 1316089 + 3f057d5 commit 9aca5a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zou/app/models/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Organisation(db.Model, BaseMixin, SerializerMixin):
has_avatar = db.Column(db.Boolean(), default=False)
use_original_file_name = db.Column(db.Boolean(), default=False)
timesheets_locked = db.Column(db.Boolean(), default=False)
format_duration_in_hours = db.Column(db.Boolean(), default=False)
hd_by_default = db.Column(db.Boolean(), default=False)
chat_token_slack = db.Column(db.String(80), default="")
chat_webhook_mattermost = db.Column(db.String(80), default="")
Expand All @@ -32,6 +33,7 @@ def present(self):
"hd_by_default": self.hd_by_default,
"use_original_file_name": self.use_original_file_name,
"timesheets_locked": self.timesheets_locked,
"format_duration_in_hours": self.format_duration_in_hours,
"updated_at": self.updated_at,
"created_at": self.created_at,
}
Expand Down

0 comments on commit 9aca5a5

Please sign in to comment.