Skip to content

Commit ad90324

Browse files
authored
Merge pull request #9 from dmitryesin/develop
develop
2 parents 4264961 + e29aeb9 commit ad90324

File tree

9 files changed

+225
-176
lines changed

9 files changed

+225
-176
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
- solver-network
4646

4747
solver-db:
48-
image: postgres:17.5
48+
image: postgres:17.5-alpine
4949
container_name: diffy-bot-db-container
5050
environment:
5151
POSTGRES_USER: ${DB_USERNAME}
@@ -55,7 +55,7 @@ services:
5555
- "5433:5432"
5656
volumes:
5757
- pgdata:/var/lib/postgresql/data
58-
- ./database/schema.sql:/docker-entrypoint-initdb.d/init.sql
58+
- ./database/schema.sql:/docker-entrypoint-initdb.d/init.sql:ro
5959
networks:
6060
- solver-network
6161

solver-bot/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM python:3.13.3-slim
22

33
WORKDIR /solver-client
44

5-
COPY solver-bot /solver-client
6-
COPY .env .env
5+
COPY solver-bot .
6+
COPY .env .
77

88
RUN pip install --no-cache-dir -r requirements.txt
99

solver-bot/src/main/python/languages.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@
5454
"error_displaying_application": "Error displaying task details.",
5555
"cancel": "Actions canceled.",
5656

57-
"method_euler": "Euler's Method",
58-
"method_modified_euler": "Improved Euler's Method",
59-
"method_runge_kutta": "Runge-Kutta Method",
60-
"method_dormand_prince": "Dormand-Prince Method",
57+
"numerical_methods": {
58+
"euler": "Euler's Method",
59+
"midpoint": "Midpoint Method",
60+
"heun": "Heun's Method",
61+
"runge_kutta": "Runge-Kutta Method",
62+
"dormand_prince": "Dormand-Prince Method"
63+
},
6164

6265
"method": "Method",
6366
"equation": "Equation",
@@ -122,10 +125,13 @@
122125
"error_displaying_application": "Ошибка при отображении деталей задачи.",
123126
"cancel": "Действия отменены.",
124127

125-
"method_euler": "Метод Эйлера",
126-
"method_modified_euler": "Улучшенный метод Эйлера",
127-
"method_runge_kutta": "Метод Рунге-Кутта",
128-
"method_dormand_prince": "Метод Дормана-Принса",
128+
"numerical_methods": {
129+
"euler": "Метод Эйлера",
130+
"midpoint": "Метод Средней Точки",
131+
"heun": "Метод Хойна",
132+
"runge_kutta": "Метод Рунге-Кутта",
133+
"dormand_prince": "Метод Дормана-Принса"
134+
},
129135

130136
"method": "Метод",
131137
"equation": "Уравнение",
@@ -190,10 +196,13 @@
190196
"error_displaying_application": "显示任务详情时出错。",
191197
"cancel": "操作已取消。",
192198

193-
"method_euler": "欧拉法",
194-
"method_modified_euler": "改进欧拉法",
195-
"method_runge_kutta": "龙格-库塔法",
196-
"method_dormand_prince": "多曼德-普林斯法",
199+
"numerical_methods": {
200+
"euler": "欧拉法",
201+
"midpoint": "中点法",
202+
"heun": "休恩法",
203+
"runge_kutta": "龙格-库塔法",
204+
"dormand_prince": "多曼德-普林斯法"
205+
},
197206

198207
"method": "方法",
199208
"equation": "方程",

0 commit comments

Comments
 (0)