Skip to content

Commit de57bbb

Browse files
committedMay 12, 2022
Fix minor bugs in notification template (grouped lost & new nominations) and Docker compose files.
1 parent 49ab91c commit de57bbb

12 files changed

+13
-13
lines changed
 

‎_config/base.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ apns_team_id = "APNS_TEAM_ID"
104104
apns_topic = "APP_BUNDLE"
105105
apns_is_production = false
106106
fcm_api_key = "FCM_API_KEY"
107-
# can be set with the SUBVT__NOTIFICATION_SENDER__KUSAMA_TELEGRAM_TOKEN
107+
# can be set with the SUBVT__NOTIFICATION_SENDER__KUSAMA_TELEGRAM_API_TOKEN
108108
# environment variable
109109
kusama_telegram_api_token = "kusama_telegram_api_token"
110-
# can be set with the SUBVT__NOTIFICATION_SENDER__POLKADOT_TELEGRAM_TOKEN
110+
# can be set with the SUBVT__NOTIFICATION_SENDER__POLKADOT_TELEGRAM_API_TOKEN
111111
# environment variable
112112
polkadot_telegram_api_token = "polkadot_telegram_api_token"
113113
# can be set with the SUBVT__NOTIFICATION_SENDER__TEMPLATE_DIR_PATH

‎_docker/compose/05-docker-compose-subvt-kusama-services.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ services:
243243
# template dir
244244
- SUBVT__NOTIFICATION_PROCESSOR__TEMPLATE_DIR_PATH=/subvt/template
245245
# telegram
246-
- SUBVT__TELEGRAM_BOT__API_TOKEN=${KUSAMA_TELEGRAM_TOKEN}
246+
- SUBVT__TELEGRAM_BOT__API_TOKEN=${KUSAMA_TELEGRAM_API_TOKEN}
247247
- SUBVT__TELEGRAM_BOT__ADMIN_CHAT_IDS=${KUSAMA_TELEGRAM_ADMIN_CHAT_IDS}
248248
- SUBVT__TELEGRAM_BOT__USERNAME=${KUSAMA_TELEGRAM_BOT_USERNAME}
249249
# plotter

‎_docker/compose/06-docker-compose-subvt-polkadot-services.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ services:
243243
# template dir
244244
- SUBVT__NOTIFICATION_PROCESSOR__TEMPLATE_DIR_PATH=/subvt/template
245245
# telegram
246-
- SUBVT__TELEGRAM_BOT__API_TOKEN=${POLKADOT_TELEGRAM_TOKEN}
246+
- SUBVT__TELEGRAM_BOT__API_TOKEN=${POLKADOT_TELEGRAM_API_TOKEN}
247247
- SUBVT__TELEGRAM_BOT__ADMIN_CHAT_IDS=${POLKADOT_TELEGRAM_ADMIN_CHAT_IDS}
248248
- SUBVT__TELEGRAM_BOT__USERNAME=${POLKADOT_TELEGRAM_BOT_USERNAME}
249249
# plotter

‎_docker/compose/down.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ docker-compose -p subvt_polkadot_services -f 06-docker-compose-subvt-polkadot-se
33
docker-compose -p subvt_kusama_services -f 05-docker-compose-subvt-kusama-services.yml down
44
docker-compose -p subvt_app_services -f 04-docker-compose-subvt-app-services.yml down
55
docker-compose -p subvt_app_data_services -f 03-docker-compose-app-data.yml down
6-
docker-compose -p subvt_kusama_data_services -f 02-docker-compose-polkadot-data.yml down
6+
docker-compose -p subvt_polkadot_data_services -f 02-docker-compose-polkadot-data.yml down
77
docker-compose -p subvt_kusama_data_services -f 01-docker-compose-kusama-data.yml down
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<strong>{{ validator_display }}</strong>
2-
⬇️ lost {{ nomination_count }} nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}.
2+
⬇️ lost {{ nomination_count }} nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}.
33
Total Amount: <strong>{{ total_nomination_amount }} {{ token_ticker }}</strong>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ validator_display }}
2-
⬇️ lost {{ nomination_count }} nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}.
2+
⬇️ lost {{ nomination_count }} nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}.
33
Total Amount: {{ total_nomination_amount }} {{ token_ticker }}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<strong>{{ validator_display }}</strong>
2-
⭐️ received {{ nomination_count }} new nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}!
2+
⭐️ received {{ nomination_count }} new nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}!
33
Total Amount: <strong>{{ total_nomination_amount }} {{ token_ticker }}</strong>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ validator_display }}
2-
⭐️ received {{ nomination_count }} new nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}!
2+
⭐️ received {{ nomination_count }} new nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}!
33
Total Amount: {{ total_nomination_amount }} {{ token_ticker }}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ validator_display }}
2-
⬇️ lost {{ nomination_count }} nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}.
2+
⬇️ lost {{ nomination_count }} nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}.
33
Total Amount: {{ total_nomination_amount }} {{ token_ticker }}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ validator_display }}
2-
⭐️ received {{ nomination_count }} new nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}!
2+
⭐️ received {{ nomination_count }} new nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}!
33
Total Amount: {{ total_nomination_amount }} {{ token_ticker }}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<strong>{{ validator_display }}</strong>
2-
⬇️ lost {{ nomination_count }} nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}.
2+
⬇️ lost {{ nomination_count }} nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}.
33
Total Amount: <strong>{{ total_nomination_amount }} {{ token_ticker }}</strong>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<strong>{{ validator_display }}</strong>
2-
⭐️ received {{ nomination_count }} new nominations in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}!
2+
⭐️ received {{ nomination_count }} new nominations{% if notification_period_type %} in the last {% if notification_period > 1 %}{{ notification_period }} {% endif %}{{ notification_period_type }}{% if notification_period > 1 %}s{% endif %}{% endif %}!
33
Total Amount: <strong>{{ total_nomination_amount }} {{ token_ticker }}</strong>

0 commit comments

Comments
 (0)
Please sign in to comment.