Skip to content

Commit

Permalink
Change to Recently Uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lauterb authored and david-allison committed May 11, 2024
1 parent fad605c commit 70bd244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CorpusSearch/ClientApp/src/components/NewDocList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ useEffect(() => {
return (<div className="NewDocList">
<header className="NewDocList-header">
</header>
<div>Recent Changes:<br/>
<div>Recently Uploaded:<br/>
<div>
<ul>{newDocs.map(doc =>
<li key={doc.name}><CorpusLink name={doc.name} ident={doc.ident}/></li>)
Expand Down
6 changes: 3 additions & 3 deletions CorpusSearch/newdocs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# not the repo it lives in

MAX=10
SINCE=three-months-ago
SINCE=six-months-ago
usage="$(basename "$0") [-h] [-m MAX] [-s SINCE] - list recently changed docs when run in manx-search-data
options are:
Expand All @@ -28,9 +28,9 @@ while getopts ':hm:s:' option; do
done
shift $((OPTIND - 1))

IGNORE_RENAME=--diff-filter=r
FIND_UPLOADS=--diff-filter=A
#substitute % for space because the latter is used as an array delimiter by the shell
for f in $(git log --since=${SINCE} ${IGNORE_RENAME} --name-only | grep ^OpenData | grep document.csv$ | sort -u | tr ' ' '%')
for f in $(git log --since=${SINCE} ${FIND_UPLOADS} --name-only | grep ^OpenData | grep document.csv$ | sort -u | tr ' ' '%')
do
ff=$(echo $f | tr '%' ' ')

Expand Down

0 comments on commit 70bd244

Please sign in to comment.