Skip to content

Commit

Permalink
Add auto date to download citation
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed May 10, 2024
1 parent dcc950e commit 2aabfc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/portal/backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def create_antibody(body: AddAntibody) -> None:
)


@prefix_router.get('/antibodies/export', response_model=None, tags=['antibody'])
@prefix_router.get('/antibodies/export', response_model=None, tags=['antibody'], dependencies=PROTECTED)
def get_antibodies_export() -> None:
return antibody_controller.get_antibodies_export()

Expand Down
6 changes: 5 additions & 1 deletion applications/portal/frontend/src/components/DownloadPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ How to cite this data
</Typography>

<Typography component="p" my={2} >
* Data was downloaded from the antibodyregistry.org, &#123;access date&#125; RRID:SCR_006397
* Data was downloaded from the antibodyregistry.org, {new Date().toLocaleDateString('en-US', {
day: '2-digit',
month: 'long',
year: 'numeric',
})} RRID:SCR_006397
</Typography>
<Typography component="p" >
<b>License</b>: CC-0
Expand Down

0 comments on commit 2aabfc5

Please sign in to comment.