Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Archived
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Aug 15, 2024
1 parent f67032e commit 05aeffa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Update

on:
schedule:
- cron: '30 2 * * *'
# Archived - no automatic scheduling anymore
# schedule:
# - cron: '30 2 * * *'
workflow_dispatch:

jobs:
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
12 changes: 6 additions & 6 deletions tools/gen_fresh_dirinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit 05aeffa

Please sign in to comment.