Make sure to switch the context back to LogEntry and make sure to only include the performer if actually present
This commit is contained in:
parent
cc7bccea4c
commit
8fab3b6d34
2 changed files with 3 additions and 2 deletions
|
@ -2053,7 +2053,8 @@ def list_logs(start_time, end_time, performer=None, repository=None, namespace=N
|
|||
.join(Performer, JOIN_LEFT_OUTER,
|
||||
on=(LogEntry.performer == Performer.id).alias('performer'))
|
||||
.switch(LogEntry)
|
||||
.join(LogEntryKind))
|
||||
.join(LogEntryKind)
|
||||
.switch(LogEntry))
|
||||
|
||||
if repository:
|
||||
joined = joined.where(LogEntry.repository == repository)
|
||||
|
|
Reference in a new issue