From 05aeffa4230b1933d7cbf0c363d76208cf4b3f4a Mon Sep 17 00:00:00 2001 From: Linus Gasser Date: Thu, 15 Aug 2024 15:01:55 +0200 Subject: [PATCH] Archived --- .github/workflows/update.yaml | 5 +++-- README.md | 9 ++++++++- tools/gen_fresh_dirinfo.py | 12 ++++++------ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index dc2c4f8..8866fe1 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -1,8 +1,9 @@ name: Update on: - schedule: - - cron: '30 2 * * *' +# Archived - no automatic scheduling anymore +# schedule: +# - cron: '30 2 * * *' workflow_dispatch: jobs: diff --git a/README.md b/README.md index 86562f9..72c3be6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ -# lightarti directory +# lightarti directory - ARCHIVED + +This project has been archived by the [C4DT](https://c4dt.epfl.ch) Factory team. +It is kept here for reference and for old URLs. +You can find more information in our [showcase](https://factory.c4dt.org/showcase/lightarti/presentation) +and find our contact information. + +## Description Holds the latest directory files for [lightarti-rest](https://github.com/c4dt/lightarti-rest). These files are updated once a day. diff --git a/tools/gen_fresh_dirinfo.py b/tools/gen_fresh_dirinfo.py index bc39171..152132d 100755 --- a/tools/gen_fresh_dirinfo.py +++ b/tools/gen_fresh_dirinfo.py @@ -644,9 +644,9 @@ def select_routers( guards = nlargest( number_guards, potential_guards, - key=lambda r: mtbf_cache.get(r.fingerprint, 0) - if r.fingerprint not in selected_set - else 0, + key=lambda r: ( + mtbf_cache.get(r.fingerprint, 0) if r.fingerprint not in selected_set else 0 + ), ) for router in guards: @@ -656,9 +656,9 @@ def select_routers( middles = nlargest( number_middles, potential_middles, - key=lambda r: mtbf_cache.get(r.fingerprint, 0) - if r.fingerprint not in selected_set - else 0, + key=lambda r: ( + mtbf_cache.get(r.fingerprint, 0) if r.fingerprint not in selected_set else 0 + ), ) # We remove exit flags from routers not selected as potential exit relay.