Skip to content

Commit 7c57f9f

Browse files
committed
Splitting long classes into their own separate files
1 parent c33c29c commit 7c57f9f

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

time_tracker_api/time_entries/time_entries_dao.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import abc
2-
from azure.cosmos import PartitionKey
32
from flask_restplus import abort
43
from flask_restplus._http import HTTPStatus
54

time_tracker_api/time_entries/time_entries_repository.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import abc
21
from typing import List, Callable
32
from azure.cosmos import PartitionKey
43
from flask_restplus import abort
@@ -16,35 +15,13 @@
1615
add_project_info_to_time_entries,
1716
add_activity_name_to_time_entries,
1817
create_in_condition,
19-
create_custom_query_from_str,
2018
add_user_email_to_time_entries,
2119
)
2220
from utils.time import (
2321
current_datetime_str,
2422
)
2523
from utils.azure_users import AzureConnection
26-
2724
from time_tracker_api.projects import projects_model
28-
from time_tracker_api.database import CRUDDao
29-
from time_tracker_api.security import current_user_id
30-
31-
32-
class TimeEntriesDao(CRUDDao):
33-
@staticmethod
34-
def current_user_id():
35-
return current_user_id()
36-
37-
@abc.abstractmethod
38-
def find_running(self):
39-
pass
40-
41-
@abc.abstractmethod
42-
def stop(self, id: str):
43-
pass
44-
45-
@abc.abstractmethod
46-
def restart(self, id: str):
47-
pass
4825

4926

5027
container_definition = {

0 commit comments

Comments
 (0)