Closed jwodder closed 2 years ago
by doing
python -m find_datalad_repos.diff -d README.diffs/forever -f README.diffs/README-forever.md 2019-10-01
I expected to receive report pretty much identical to current in terms of added datasets, but it came out empty:
(git)lena:~datalad/datalad-usage-dashboard[gh-20]git
$> python -m find_datalad_repos.diff -d README.diffs/forever -f README.diffs/README-forever.md 2000-01-01
(dev-pycharm) 1 29043.....................................:Mon 13 Dec 2021 07:02:27 PM EST:.
(git)lena:~datalad/datalad-usage-dashboard[gh-20]git
$> cat README.diffs/README-forever.md
# GitHub
## In the wild
No repositories found!
## Inner circle
No repositories found!
## Gone
No repositories found!
# OSF
## Active
No repositories found!
## Gone
No repositories found!
was my assumption flawed?
@yarikoptic The problem was caused by the date being before the repository was created. I've updated the code to handle that case.
Thank you @jwodder ! I have not done extensive or thorough testing , but seems to work and produce sensible results. Let's proceed
After installing the packages in
requirements.txt
, the script can be run withpython3 -m find_datalad_repos.diff $FROM $TO
. Alternatively, run with nox (which takes care of installing the requirements) withnox -e diff -- $FROM $TO
. See the script's--help
output for further details.Closes #20.