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