проверка
All checks were successful
Run Tests / run_tests (push) Successful in 27s

This commit is contained in:
Olga Nemt 2024-12-18 13:13:29 +05:00
parent 1852645ae9
commit 19317b5417
2 changed files with 5 additions and 2 deletions

View File

@ -26,8 +26,9 @@ jobs:
apt install -y postgresql apt install -y postgresql
service postgresql start service postgresql start
sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();" sudo -u postgres -s psql -U postgres -d postgres -c "alter user postgres with password 'postgres'; SELECT version();"
sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres' ENCODING 'UTF8' LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' TEMPLATE = template0" sudo -u postgres -s psql -U postgres -d postgres -c "CREATE DATABASE persistence WITH OWNER 'postgres'"
sudo locale -a sudo locale -a
#ENCODING 'UTF8' LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' TEMPLATE = template0
# - uses: pdm-project/setup-pdm@v3 # - uses: pdm-project/setup-pdm@v3
# with: # with:
# python-version: 3.10 # python-version: 3.10

View File

@ -1,5 +1,6 @@
using DD.Persistence.API; using DD.Persistence.API;
using System.Globalization;
namespace DD.Persistence.App; namespace DD.Persistence.App;
@ -7,7 +8,8 @@ public class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
CultureInfo uiCulture = CultureInfo.CurrentUICulture;
CultureInfo.CurrentUICulture = new CultureInfo("en-EN");
var host = CreateHostBuilder(args).Build(); var host = CreateHostBuilder(args).Build();
Startup.BeforeRunHandler(host); Startup.BeforeRunHandler(host);
host.Run(); host.Run();