Skip to content

Commit b1fd602

Browse files
committed
fix(time-entries): 🐛 add instantiation of project_dao
1 parent 3a95d9c commit b1fd602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

time_tracker_api/time_entries/time_entries_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import abc
22
from dataclasses import dataclass, field
33
from typing import List, Callable
4-
from flask import jsonify
54

65
from azure.cosmos import PartitionKey
76
from flask_restplus._http import HTTPStatus
@@ -150,6 +149,7 @@ def find_all(
150149
custom_params=custom_params,
151150
)
152151

152+
project_dao = projects_model.create_dao()
153153
projects = project_dao.get_all()
154154
add_project_name_to_time_entries(time_entries, projects)
155155
return time_entries

0 commit comments

Comments
 (0)