Skip to content

Commit 6bbcce7

Browse files
committed
rename cutoff to begin_at
1 parent bf20f28 commit 6bbcce7

File tree

1 file changed

+6
-6
lines changed
  • servicex_app/servicex_app/resources/transformation

1 file changed

+6
-6
lines changed

servicex_app/servicex_app/resources/transformation/results.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get(self, request_id):
1818

1919
parser = reqparse.RequestParser()
2020
parser.add_argument(
21-
'cutoff',
21+
'begin_at',
2222
type=str,
2323
required=False,
2424
location='args'
@@ -28,13 +28,13 @@ def get(self, request_id):
2828

2929
transform_result_query = TransformationResult.query.filter_by(request_id=request_id)
3030

31-
cutoff_str = args.get('cutoff')
32-
if cutoff_str:
31+
begin_at_str = args.get('begin_at')
32+
if begin_at_str:
3333
try:
34-
cutoff = datetime.datetime.fromisoformat(cutoff_str)
34+
begin_at = datetime.datetime.fromisoformat(begin_at_str)
3535
except AttributeError:
36-
return {"message": f"Cutoff value {cutoff_str} is not an ISO 8601 compliant datetime"}, 400
37-
transform_result_query = transform_result_query.filter(TransformationResult.created_at > cutoff)
36+
return {"message": f"begin_at value {begin_at_str} is not an ISO 8601 compliant datetime"}, 400
37+
transform_result_query = transform_result_query.filter(TransformationResult.created_at > begin_at)
3838

3939
results = [transformation_result.to_json(transformation_result) for transformation_result in transform_result_query]
4040

0 commit comments

Comments
 (0)