diff --git a/coding/codeforces.py b/coding/codeforces.py index 3e1dd82..c6b9378 100644 --- a/coding/codeforces.py +++ b/coding/codeforces.py @@ -11,7 +11,7 @@ from kython.kerror import Res, ytry, unwrap from kython.kdatetime import as_utc -_BDIR = Path('/L/Dropbox/data/codeforces') +_BDIR = Path('/L/zzz_syncthing/data/codeforces') Cid = int @@ -95,6 +95,11 @@ def iter_data() -> Iterator[Res[Competition]]: def get_data(): return list(sorted(iter_data(), key=fget(Competition.when))) + +def test(): + assert len(get_data()) > 10 + + def main(): for d in iter_data(): try: diff --git a/coding/topcoder.py b/coding/topcoder.py index 4162429..d41c2ae 100644 --- a/coding/topcoder.py +++ b/coding/topcoder.py @@ -11,7 +11,7 @@ from kython.kerror import Res, ytry, unwrap def get_latest(): - last = max(Path('/L/Dropbox/data/topcoder').glob('*.json')) + last = max(Path('/L/zzz_syncthing/data/topcoder').glob('*.json')) return json.loads(last.read_text()) @@ -79,6 +79,9 @@ def get_data(): return list(sorted(iter_data(), key=fget(Competition.when))) +def test(): + assert len(get_data()) > 10 + def main(): for d in iter_data(): try: