Skip to content

Commit

Permalink
Revert changes to analysis API endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkppr committed Sep 24, 2024
1 parent a3fffda commit 413c3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timesketch/api/v1/resources/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def post(self, sketch_id):

timeline_ids = form.get("timeline_ids")
if not timeline_ids:
return abort(HTTP_STATUS_CODE_BAD_REQUEST, "No timelines are uploaded yet")
return abort(HTTP_STATUS_CODE_BAD_REQUEST, "Need to provide a timeline ID")

sketch_timelines = {t.id for t in sketch.timelines}
if not set(timeline_ids).issubset(sketch_timelines):
Expand Down

0 comments on commit 413c3bd

Please sign in to comment.