Compare commits

..

2 Commits

2 changed files with 15 additions and 1 deletions

View File

@ -14,10 +14,14 @@ All notable changes to this project will be documented in this file.
### Added ### Added
- Initial changelog following the keepachangelog.com format - Initial changelog following the keepachangelog.com format
- Added "silent" option to jilo-cli, suitable for scripting
### Changed ### Changed
- Updated the way jilo-cli handles multiple options, added filtering conferences by time period - Updated the way jilo-cli handles multiple options, added filtering conferences by time period
### Fixed
- Fixed an error in double counting of conferences in jilo-cli
--- ---
## 0.1 - 2024-06-12 ## 0.1 - 2024-06-12

View File

@ -720,8 +720,18 @@ if [[ "$conference_option" == true ]]; then
# we only format the outrput if there are conferences to show # we only format the outrput if there are conferences to show
if [[ "${#conference_array[@]}" -gt 0 ]]; then if [[ "${#conference_array[@]}" -gt 0 ]]; then
output=""
# prepare the header # prepare the header
if [[ "$silent" != true ]]; then
header="\nAll conferences"
if [[ "$time_range_specified" == true ]]; then
header+=" for the time period \"$IMPORTANT_TEXT$from_time - $until_time$NORMAL_TEXT\""
fi
header+="\n"
echo -e "$header"
output="component\tconference ID\tconference name\tname count\tconference host\n" output="component\tconference ID\tconference name\tname count\tconference host\n"
fi
# prepare the formatted rows # prepare the formatted rows
for row in "${conference_array[@]}"; do for row in "${conference_array[@]}"; do
IFS='|' read -r jitsi_component conference_id conference_name name_count conference_host <<< "$row" IFS='|' read -r jitsi_component conference_id conference_name name_count conference_host <<< "$row"