Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FuHsinyu committed Jan 8, 2025
1 parent de0d925 commit 7f63bf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions datarequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ def api_datarequest_dta_post_upload_actions(ctx: rule.Context, request_id: str,
:param request_id: Unique identifier of the data request
:param filename: Filename of DTA
:returns:
:returns: API result
"""
# Permission check
datarequest_action_permitted(ctx, request_id, ["DM"], [status.APPROVED,
Expand Down Expand Up @@ -1941,7 +1941,7 @@ def api_datarequest_signed_dta_upload_permission(ctx: rule.Context, request_id:
:param action: String specifying whether write permission must be granted ("grant") or
revoked ("revoke")
:returns:
:returns: API result
"""
# Permission check
datarequest_action_permitted(ctx, request_id, ["OWN"], [status.DTA_READY])
Expand All @@ -1953,7 +1953,7 @@ def api_datarequest_signed_dta_upload_permission(ctx: rule.Context, request_id:
# Grant/revoke temporary write permissions
dta_coll_path = "/{}/{}/{}/{}".format(user.zone(ctx), DRCOLLECTION, request_id, SIGDTA_PATHNAME)
ctx.adminTempWritePermission(dta_coll_path, action)

return None

@api.make()
def api_datarequest_signed_dta_post_upload_actions(ctx: rule.Context, request_id: str, filename: str) -> api.Result:
Expand All @@ -1977,6 +1977,7 @@ def api_datarequest_signed_dta_post_upload_actions(ctx: rule.Context, request_id

# Set status to dta_signed
status_set(ctx, request_id, status.DTA_SIGNED)
return None


@api.make()
Expand Down

0 comments on commit 7f63bf8

Please sign in to comment.