From 4e4629dc4919cae8c6d8dafb0ec5c85dcc36ff1a Mon Sep 17 00:00:00 2001 From: vonavi Date: Fri, 18 Apr 2014 13:29:28 +0300 Subject: [PATCH] Withdraw trex6 from tournament 'Tabiyas'. --- 2014/1-tabiyas/players.yml | 1 + schedule | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/2014/1-tabiyas/players.yml b/2014/1-tabiyas/players.yml index 3f381c3..957ecf5 100644 --- a/2014/1-tabiyas/players.yml +++ b/2014/1-tabiyas/players.yml @@ -27,6 +27,7 @@ lor: trex6 lichess: txgames elo: 1283 + status: withdrew - number: 7 lor: Magian diff --git a/schedule b/schedule index 22f6edc..ee77973 100755 --- a/schedule +++ b/schedule @@ -5,6 +5,9 @@ REPO=fat0troll/lorchess TOURNAMENT=2014/1-tabiyas +# *FIXME* Withdrew players should be taken from the main config +WITHDREW_PLS="trex6" + # Variables date_re="([0-9?]{2})\\.([0-9?]{2})\\.([0-9?]{4})" res_re="(0|1|0\\.5):(0|1|0\\.5)" @@ -100,7 +103,9 @@ show_tour_info() { # Store the link of game in variable '$url' if $SHOW_LINK; then - [[ -n "$result" ]] && store_game_url + if [[ ! "$WITHDREW_PLS" =~ (^|' '+)("${white}"|"${black}")($|' '+) ]]; then + [[ -n "$result" ]] && store_game_url + fi fi output_lines+="${white} ${black} ${result} ${url}\n"