Рефактор RedmineConfig
This commit is contained in:
@@ -1,20 +1,7 @@
|
||||
class RedmineConfig:
|
||||
@property
|
||||
def base_url(self):
|
||||
return "https://redmine.sbps.ru"
|
||||
|
||||
@property
|
||||
def time_entries_url(self):
|
||||
return "/time_entries.json"
|
||||
|
||||
@property
|
||||
def my_account_url(self):
|
||||
return "/my/account.json"
|
||||
|
||||
@property
|
||||
def datetime_format(self):
|
||||
return "%Y-%m-%d"
|
||||
|
||||
@property
|
||||
def time_entry_activities(self):
|
||||
return "/enumerations/time_entry_activities.json"
|
||||
def __init__(self):
|
||||
self.base_url = "https://redmine.sbps.ru"
|
||||
self.time_entries_url = "/time_entries.json"
|
||||
self.my_account_url = "/my/account.json"
|
||||
self.datetime_format = "%Y-%m-%d"
|
||||
self.time_entry_activities = "/enumerations/time_entry_activities.json"
|
||||
|
||||
Reference in New Issue
Block a user