Skip to content

Commit 7ce66a7

Browse files
committed
track dto files
1 parent c4224a3 commit 7ce66a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/addons/api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def get(self, core: ApplicationCore, request: web.Request) -> web.Response
6767

6868
# iterate through photos
6969
for photo in user_photos:
70-
_LOGGER.debug(f"get additional data for {photo}")
70+
_LOGGER.debug(f"get additional data for {photo.filepath}")
7171

7272
# photo location
7373
location = None
@@ -85,7 +85,7 @@ async def get(self, core: ApplicationCore, request: web.Request) -> web.Response
8585
tags = ["landscape", "sky", "night"]
8686

8787
# add photo to results
88-
results.add(
88+
results.append(
8989
Photo(
9090
name="DSC_2340-HDR.jpg",
9191
description="",

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@
3636
"core",
3737
"core.addons",
3838
"core.authentication",
39+
"core.authentication.dto",
3940
"core.authorization",
4041
"core.persistency",
42+
"core.persistency.dto",
4143
"core.utils",
4244
"core.webserver",
4345
],

0 commit comments

Comments
 (0)