Skip to content

Commit

Permalink
adding back universal exp
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 22, 2024
1 parent 33cebe5 commit a244db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pioreactorui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ def get_logs(experiment: str) -> ResponseReturnValue:
and h.experiment = l.experiment
and h.assigned_at <= l.timestamp
and l.timestamp <= coalesce(h.unassigned_at, strftime('%Y-%m-%dT%H:%M:%S', datetime('now')) )
WHERE (l.experiment=?)
WHERE (l.experiment=? OR l.experiment=?)
AND ({get_level_string("DEBUG")})
ORDER BY l.timestamp DESC LIMIT 50 OFFSET {skip};""",
(experiment,),
(experiment, UNIVERSAL_EXPERIMENT),
)

except Exception as e:
Expand Down Expand Up @@ -454,11 +454,11 @@ def get_logs_for_unit_and_experiment(pioreactor_unit: str, experiment: str) -> R
and h.experiment = l.experiment
and h.assigned_at <= l.timestamp
and l.timestamp <= coalesce(h.unassigned_at, strftime('%Y-%m-%dT%H:%M:%S', datetime('now')) )
WHERE (l.experiment=?)
WHERE (l.experiment=? or l.experiment=?)
AND (l.pioreactor_unit=? or l.pioreactor_unit=?)
AND ({get_level_string("DEBUG")})
ORDER BY l.timestamp DESC LIMIT 50 OFFSET {skip};""",
(experiment, pioreactor_unit, UNIVERSAL_IDENTIFIER),
(experiment, UNIVERSAL_EXPERIMENT, pioreactor_unit, UNIVERSAL_IDENTIFIER),
)

except Exception as e:
Expand Down

0 comments on commit a244db1

Please sign in to comment.