File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 28
28
- name : Подключение к серверу и обновление контейнера
29
29
run : |
30
30
ssh -p 8822 -i ~/.ssh/deploy_key ${{ secrets.SERVER_USER }}@${{ secrets.SERVER }} << 'EOF'
31
- docker stop myaws || true
31
+ docker stop myaws || true
32
32
docker rm myaws || true
33
33
docker pull eevarn/myaws-bot
34
34
docker run -d \
Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ def __init__(self):
25
25
else :
26
26
self .system_context = ''
27
27
28
-
29
-
30
28
if __name__ == '__main__' :
31
29
configs = Configs ()
32
30
33
31
tg_db = TelegramDBService (db_name = configs .db_name )
34
32
35
33
# Если контекст по умолчанию пустой берем его из таблицы настроек, если не пустой обновляем БД
36
- if configs .system_context :
34
+ if not configs .system_context :
37
35
configs .system_context = tg_db .get_settings ()['system_context' ]
38
36
else :
39
37
tg_db .update_settings (system_context = configs .system_context )
You can’t perform that action at this time.
0 commit comments