bundles/docker-immich; do not log all those user ids if we don't need them
This commit is contained in:
parent
57c1eb2605
commit
29799a1d33
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ for album_id, album in albums.items():
|
||||||
with conn.cursor() as cur:
|
with conn.cursor() as cur:
|
||||||
cur.execute('SELECT "usersId" FROM albums_shared_users_users WHERE "albumsId" = %s;', (album_id,))
|
cur.execute('SELECT "usersId" FROM albums_shared_users_users WHERE "albumsId" = %s;', (album_id,))
|
||||||
album_shares = [i[0] for i in cur.fetchall()]
|
album_shares = [i[0] for i in cur.fetchall()]
|
||||||
log.info(f'album is shared with {len(album_shares)} users: {album_shares}')
|
log.info(f'album is shared with {len(album_shares)} users')
|
||||||
|
log.debug(f'{album_shares=}')
|
||||||
for user_id, user_name in users.items():
|
for user_id, user_name in users.items():
|
||||||
if user_id == album['owner'] or user_id in album_shares:
|
if user_id == album['owner'] or user_id in album_shares:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue