datalad / datalad-usage-dashboard

Dashboard of detected usages of DataLad
MIT License
4 stars 2 forks source link

Script for generating READMEs for datasets added in a time range #21

Closed jwodder closed 2 years ago

jwodder commented 2 years ago

After installing the packages in requirements.txt, the script can be run with python3 -m find_datalad_repos.diff $FROM $TO. Alternatively, run with nox (which takes care of installing the requirements) with nox -e diff -- $FROM $TO. See the script's --help output for further details.

Closes #20.

yarikoptic commented 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?

jwodder commented 2 years ago

@yarikoptic The problem was caused by the date being before the repository was created. I've updated the code to handle that case.

yarikoptic commented 2 years ago

Thank you @jwodder ! I have not done extensive or thorough testing , but seems to work and produce sensible results. Let's proceed