diff --git a/.gitignore b/.gitignore index 93d5dea6..56941023 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ package-lock.json package.json old_bot *.mmdb +*.log + # Ignore files \ No newline at end of file diff --git a/1db.sqlite3 b/1db.sqlite3 deleted file mode 100644 index d3b8457e..00000000 Binary files a/1db.sqlite3 and /dev/null differ diff --git a/1db.sqlite3.sql b/1db.sqlite3.sql deleted file mode 100644 index 214d86fe..00000000 --- a/1db.sqlite3.sql +++ /dev/null @@ -1,149 +0,0 @@ -BEGIN TRANSACTION; -INSERT INTO "django_migrations" ("id","app","name","applied") VALUES (1,'contenttypes','0001_initial','2024-12-09 09:30:10.251024'), - (2,'auth','0001_initial','2024-12-09 09:30:10.285571'), - (3,'admin','0001_initial','2024-12-09 09:30:10.304106'), - (4,'admin','0002_logentry_remove_auto_add','2024-12-09 09:30:10.327893'), - (5,'admin','0003_logentry_add_action_flag_choices','2024-12-09 09:30:10.347643'), - (6,'contenttypes','0002_remove_content_type_name','2024-12-09 09:30:10.391061'), - (7,'auth','0002_alter_permission_name_max_length','2024-12-09 09:30:10.411017'), - (8,'auth','0003_alter_user_email_max_length','2024-12-09 09:30:10.433375'), - (9,'auth','0004_alter_user_username_opts','2024-12-09 09:30:10.456000'), - (10,'auth','0005_alter_user_last_login_null','2024-12-09 09:30:10.487091'), - (11,'auth','0006_require_contenttypes_0002','2024-12-09 09:30:10.490205'), - (12,'auth','0007_alter_validators_add_error_messages','2024-12-09 09:30:10.505490'), - (13,'auth','0008_alter_user_username_max_length','2024-12-09 09:30:10.531170'), - (14,'auth','0009_alter_user_last_name_max_length','2024-12-09 09:30:10.554633'), - (15,'auth','0010_alter_group_name_max_length','2024-12-09 09:30:10.572891'), - (16,'auth','0011_update_proxy_permissions','2024-12-09 09:30:10.595627'), - (17,'auth','0012_alter_user_first_name_max_length','2024-12-09 09:30:10.626279'), - (18,'users','0001_initial','2024-12-09 09:30:10.697462'), - (19,'hotels','0001_initial','2024-12-09 09:30:10.728173'), - (20,'pms_integration','0001_initial','2024-12-09 09:30:10.753819'), - (21,'hotels','0002_initial','2024-12-09 09:30:10.883078'), - (22,'hotels','0003_initial','2024-12-09 09:30:11.011514'), - (23,'sessions','0001_initial','2024-12-09 09:30:11.033336'); -INSERT INTO "django_admin_log" ("id","object_id","object_repr","action_flag","change_message","content_type_id","user_id","action_time") VALUES (1,'1','Shelter Golden Hills 3',1,'[{"added": {}}]',7,1,'2024-12-09 09:32:31.355706'), - (2,'2','Shelter Golden Hills 4',1,'[{"added": {}}]',7,1,'2024-12-09 09:33:10.530095'), - (3,'1','Golden Hills 3',1,'[{"added": {}}]',15,1,'2024-12-09 09:34:11.465732'), - (4,'2','Golden Hills 4',1,'[{"added": {}}]',15,1,'2024-12-09 09:34:21.783766'), - (5,'1','andrew',1,'[{"added": {}}]',18,1,'2024-12-09 09:35:20.367524'), - (6,'1','Настройки уведомлений для andrew',1,'[{"added": {}}]',19,1,'2024-12-09 09:35:40.518128'), - (7,'1','andrew - Golden Hills 3',1,'[{"added": {}}]',13,1,'2024-12-09 09:35:57.888800'), - (8,'2','andrew - Golden Hills 4',1,'[{"added": {}}]',13,1,'2024-12-09 09:36:06.799616'), - (9,'3','Как дома',1,'[{"added": {}}]',15,1,'2024-12-09 10:19:47.100883'); -INSERT INTO "django_content_type" ("id","app_label","model") VALUES (1,'admin','logentry'), - (2,'auth','permission'), - (3,'auth','group'), - (4,'auth','user'), - (5,'contenttypes','contenttype'), - (6,'sessions','session'), - (7,'pms_integration','pmsconfiguration'), - (8,'pms_integration','pmsintegrationlog'), - (9,'hotels','apiconfiguration'), - (10,'hotels','fraudlog'), - (11,'hotels','guest'), - (12,'hotels','reservation'), - (13,'hotels','userhotel'), - (14,'hotels','apirequestlog'), - (15,'hotels','hotel'), - (16,'users','localuseractivitylog'), - (17,'users','useractivitylog'), - (18,'users','user'), - (19,'users','notificationsettings'), - (20,'users','userconfirmation'); -INSERT INTO "auth_permission" ("id","content_type_id","codename","name") VALUES (1,1,'add_logentry','Can add log entry'), - (2,1,'change_logentry','Can change log entry'), - (3,1,'delete_logentry','Can delete log entry'), - (4,1,'view_logentry','Can view log entry'), - (5,2,'add_permission','Can add permission'), - (6,2,'change_permission','Can change permission'), - (7,2,'delete_permission','Can delete permission'), - (8,2,'view_permission','Can view permission'), - (9,3,'add_group','Can add group'), - (10,3,'change_group','Can change group'), - (11,3,'delete_group','Can delete group'), - (12,3,'view_group','Can view group'), - (13,4,'add_user','Can add user'), - (14,4,'change_user','Can change user'), - (15,4,'delete_user','Can delete user'), - (16,4,'view_user','Can view user'), - (17,5,'add_contenttype','Can add content type'), - (18,5,'change_contenttype','Can change content type'), - (19,5,'delete_contenttype','Can delete content type'), - (20,5,'view_contenttype','Can view content type'), - (21,6,'add_session','Can add session'), - (22,6,'change_session','Can change session'), - (23,6,'delete_session','Can delete session'), - (24,6,'view_session','Can view session'), - (25,7,'add_pmsconfiguration','Can add PMS система'), - (26,7,'change_pmsconfiguration','Can change PMS система'), - (27,7,'delete_pmsconfiguration','Can delete PMS система'), - (28,7,'view_pmsconfiguration','Can view PMS система'), - (29,8,'add_pmsintegrationlog','Can add Журнал интеграции PMS'), - (30,8,'change_pmsintegrationlog','Can change Журнал интеграции PMS'), - (31,8,'delete_pmsintegrationlog','Can delete Журнал интеграции PMS'), - (32,8,'view_pmsintegrationlog','Can view Журнал интеграции PMS'), - (33,9,'add_apiconfiguration','Can add Конфигурация API'), - (34,9,'change_apiconfiguration','Can change Конфигурация API'), - (35,9,'delete_apiconfiguration','Can delete Конфигурация API'), - (36,9,'view_apiconfiguration','Can view Конфигурация API'), - (37,10,'add_fraudlog','Can add Журнал мошенничества'), - (38,10,'change_fraudlog','Can change Журнал мошенничества'), - (39,10,'delete_fraudlog','Can delete Журнал мошенничества'), - (40,10,'view_fraudlog','Can view Журнал мошенничества'), - (41,11,'add_guest','Can add Гость'), - (42,11,'change_guest','Can change Гость'), - (43,11,'delete_guest','Can delete Гость'), - (44,11,'view_guest','Can view Гость'), - (45,12,'add_reservation','Can add Бронирование'), - (46,12,'change_reservation','Can change Бронирование'), - (47,12,'delete_reservation','Can delete Бронирование'), - (48,12,'view_reservation','Can view Бронирование'), - (49,13,'add_userhotel','Can add Пользователь отеля'), - (50,13,'change_userhotel','Can change Пользователь отеля'), - (51,13,'delete_userhotel','Can delete Пользователь отеля'), - (52,13,'view_userhotel','Can view Пользователь отеля'), - (53,14,'add_apirequestlog','Can add Журнал запросов API'), - (54,14,'change_apirequestlog','Can change Журнал запросов API'), - (55,14,'delete_apirequestlog','Can delete Журнал запросов API'), - (56,14,'view_apirequestlog','Can view Журнал запросов API'), - (57,15,'add_hotel','Can add Отель'), - (58,15,'change_hotel','Can change Отель'), - (59,15,'delete_hotel','Can delete Отель'), - (60,15,'view_hotel','Can view Отель'), - (61,16,'add_localuseractivitylog','Can add local user activity log'), - (62,16,'change_localuseractivitylog','Can change local user activity log'), - (63,16,'delete_localuseractivitylog','Can delete local user activity log'), - (64,16,'view_localuseractivitylog','Can view local user activity log'), - (65,17,'add_useractivitylog','Can add Журнал активности'), - (66,17,'change_useractivitylog','Can change Журнал активности'), - (67,17,'delete_useractivitylog','Can delete Журнал активности'), - (68,17,'view_useractivitylog','Can view Журнал активности'), - (69,18,'add_user','Can add Пользователь'), - (70,18,'change_user','Can change Пользователь'), - (71,18,'delete_user','Can delete Пользователь'), - (72,18,'view_user','Can view Пользователь'), - (73,19,'add_notificationsettings','Can add Способ оповещения'), - (74,19,'change_notificationsettings','Can change Способ оповещения'), - (75,19,'delete_notificationsettings','Can delete Способ оповещения'), - (76,19,'view_notificationsettings','Can view Способ оповещения'), - (77,20,'add_userconfirmation','Can add Подтверждение пользователя'), - (78,20,'change_userconfirmation','Can change Подтверждение пользователя'), - (79,20,'delete_userconfirmation','Can delete Подтверждение пользователя'), - (80,20,'view_userconfirmation','Can view Подтверждение пользователя'); -INSERT INTO "auth_user" ("id","password","last_login","is_superuser","username","last_name","email","is_staff","is_active","date_joined","first_name") VALUES (1,'pbkdf2_sha256$870000$0tWRKvUavKHjKmwWjWsfYc$mfqBdzr5TB74K1f9OHCI3w/66VZE7vY53MEpgUT73/4=','2024-12-09 09:31:26.675259',1,'trevor1985','','shadow85@list.ru',1,1,'2024-12-09 09:30:44.551380',''); -INSERT INTO "users_user" ("id","password","last_login","is_superuser","username","first_name","last_name","email","is_staff","is_active","date_joined","telegram_id","chat_id","role","confirmed") VALUES (1,'Andrey K. Tsoy','2024-12-09 09:34:41',1,'andrew','','','',0,1,'2024-12-09 09:34:27',556399210,556399210,'hotel_user',0); -INSERT INTO "users_notificationsettings" ("id","telegram_enabled","email_enabled","email","notification_time","user_id") VALUES (1,0,1,'a.choi@smartsoltech.kr','09:00:00',1); -INSERT INTO "hotels_hotel" ("id","name","created_at","api_id","pms_id") VALUES (1,'Golden Hills 3','2024-12-09 09:34:11.463934',NULL,1), - (2,'Golden Hills 4','2024-12-09 09:34:21.782571',NULL,2), - (3,'Как дома','2024-12-09 10:19:47.095457',NULL,NULL); -INSERT INTO "pms_integration_pmsconfiguration" ("id","name","url","token","username","password","plugin_name","created_at") VALUES (1,'Shelter Golden Hills 3','https://pms.frontdesk24.ru/sheltercloudapi/Reservations/ByFilter','A0DD4B7F-0381-4096-B46E-D22F1A571996',NULL,NULL,'Shelter PMS','2024-12-09 09:32:31.348604'), - (2,'Shelter Golden Hills 4','https://pms.frontdesk24.ru/sheltercloudapi/Reservations/ByFilter','A0DD4B7F-0381-4096-B46E-D22F1A571996',NULL,NULL,'Shelter PMS','2024-12-09 09:33:10.514492'); -INSERT INTO "pms_integration_pmsintegrationlog" ("id","checked_at","status","message","hotel_id") VALUES (1,'2024-12-09 09:36:43.044421','error','Плагин для PMS Shelter PMS не найден.',2), - (2,'2024-12-09 09:38:09.595349','error','Плагин для PMS Shelter PMS не найден.',1), - (3,'2024-12-09 09:40:38.721678','error','Плагин для PMS Shelter PMS не найден.',2), - (4,'2024-12-09 10:07:44.968856','error','Плагин для PMS Shelter PMS не найден.',1); -INSERT INTO "hotels_userhotel" ("id","hotel_id","user_id") VALUES (1,1,1), - (2,2,1); -INSERT INTO "django_session" ("session_key","session_data","expire_date") VALUES ('wjcybubh02eoyth1e4pm9cgjc8c9rk1v','.eJxVjEEOwiAQRe_C2hBgpgVcuvcMZIBBqoYmpV0Z765NutDtf-_9lwi0rTVsnZcwZXEWWpx-t0jpwW0H-U7tNss0t3WZotwVedAur3Pm5-Vw_w4q9fqthxwtITBY9MlGtJ6ADZiiAdyQ7KhVyVgcGY7gEL1BVqMhH51iNl68P9F6N0w:1tKa6w:zJT5PgcESbBBG5gKuJsyfV6EOxizdevxDzI4QrGbLsc','2024-12-23 09:31:26.682056'); -COMMIT; diff --git a/db2.sqlite3 b/db2.sqlite3 deleted file mode 100644 index 5ded71a7..00000000 Binary files a/db2.sqlite3 and /dev/null differ diff --git a/db2.sqlite3.sql b/db2.sqlite3.sql deleted file mode 100644 index a1138d4b..00000000 --- a/db2.sqlite3.sql +++ /dev/null @@ -1,186 +0,0 @@ -BEGIN TRANSACTION; -INSERT INTO "django_migrations" ("id","app","name","applied") VALUES (1,'contenttypes','0001_initial','2024-12-10 01:46:55.727280'), - (2,'auth','0001_initial','2024-12-10 01:46:55.748342'), - (3,'admin','0001_initial','2024-12-10 01:46:55.761857'), - (4,'admin','0002_logentry_remove_auto_add','2024-12-10 01:46:55.771717'), - (5,'admin','0003_logentry_add_action_flag_choices','2024-12-10 01:46:55.783546'), - (6,'contenttypes','0002_remove_content_type_name','2024-12-10 01:46:55.798657'), - (7,'auth','0002_alter_permission_name_max_length','2024-12-10 01:46:55.812626'), - (8,'auth','0003_alter_user_email_max_length','2024-12-10 01:46:55.826016'), - (9,'auth','0004_alter_user_username_opts','2024-12-10 01:46:55.836404'), - (10,'auth','0005_alter_user_last_login_null','2024-12-10 01:46:55.846555'), - (11,'auth','0006_require_contenttypes_0002','2024-12-10 01:46:55.850370'), - (12,'auth','0007_alter_validators_add_error_messages','2024-12-10 01:46:55.858610'), - (13,'auth','0008_alter_user_username_max_length','2024-12-10 01:46:55.868657'), - (14,'auth','0009_alter_user_last_name_max_length','2024-12-10 01:46:55.880462'), - (15,'auth','0010_alter_group_name_max_length','2024-12-10 01:46:55.893095'), - (16,'auth','0011_update_proxy_permissions','2024-12-10 01:46:55.900517'), - (17,'auth','0012_alter_user_first_name_max_length','2024-12-10 01:46:55.911606'), - (18,'users','0001_initial','2024-12-10 01:46:55.941858'), - (19,'hotels','0001_initial','2024-12-10 01:46:55.957904'), - (20,'pms_integration','0001_initial','2024-12-10 01:46:55.968957'), - (21,'hotels','0002_initial','2024-12-10 01:46:56.002327'), - (22,'hotels','0003_initial','2024-12-10 01:46:56.025083'), - (23,'sessions','0001_initial','2024-12-10 01:46:56.034581'), - (24,'pms_integration','0002_alter_pmsconfiguration_plugin_name','2024-12-10 02:52:26.722876'), - (25,'pms_integration','0003_alter_pmsconfiguration_plugin_name','2024-12-10 02:58:35.733611'), - (26,'pms_integration','0004_alter_pmsconfiguration_plugin_name','2024-12-10 03:00:06.725614'), - (27,'pms_integration','0005_pmsconfiguration_private_key_and_more','2024-12-10 03:04:00.440483'), - (28,'scheduler','0001_initial','2024-12-10 06:42:05.633067'), - (29,'scheduler','0002_alter_scheduledtask_options_and_more','2024-12-10 06:49:38.460869'), - (30,'scheduler','0003_alter_scheduledtask_options_and_more','2024-12-10 07:13:54.438968'); -INSERT INTO "django_admin_log" ("id","object_id","object_repr","action_flag","change_message","content_type_id","user_id","action_time") VALUES (1,'1','Shelter Golden Hills 3',1,'[{"added": {}}]',7,1,'2024-12-09 09:32:31.355706'), - (2,'2','Shelter Golden Hills 4',1,'[{"added": {}}]',7,1,'2024-12-09 09:33:10.530095'), - (3,'1','Golden Hills 3',1,'[{"added": {}}]',15,1,'2024-12-09 09:34:11.465732'), - (4,'2','Golden Hills 4',1,'[{"added": {}}]',15,1,'2024-12-09 09:34:21.783766'), - (5,'1','andrew',1,'[{"added": {}}]',18,1,'2024-12-09 09:35:20.367524'), - (6,'1','Настройки уведомлений для andrew',1,'[{"added": {}}]',19,1,'2024-12-09 09:35:40.518128'), - (7,'1','andrew - Golden Hills 3',1,'[{"added": {}}]',13,1,'2024-12-09 09:35:57.888800'), - (8,'2','andrew - Golden Hills 4',1,'[{"added": {}}]',13,1,'2024-12-09 09:36:06.799616'), - (9,'3','Как дома',1,'[{"added": {}}]',15,1,'2024-12-09 10:19:47.100883'), - (10,'2','Shelter Golden Hills 4',2,'[{"changed": {"fields": ["\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430"]}}]',7,1,'2024-12-10 02:47:47.763286'), - (11,'1','Shelter Golden Hills 3',2,'[{"changed": {"fields": ["\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430"]}}]',7,1,'2024-12-10 02:47:51.978891'), - (12,'2','Shelter Golden Hills 4',2,'[{"changed": {"fields": ["plugin_name"]}}]',7,1,'2024-12-10 03:00:54.761679'), - (13,'2','Shelter Golden Hills 4',2,'[]',7,1,'2024-12-10 03:01:06.448068'), - (14,'3','Как дома / RealtyCalendar',1,'[{"added": {}}]',7,1,'2024-12-10 03:07:04.219584'), - (15,'3','andrew - Как дома',1,'[{"added": {}}]',13,1,'2024-12-10 03:07:13.403477'), - (16,'3','Как дома',2,'[{"changed": {"fields": ["PMS \u0441\u0438\u0441\u0442\u0435\u043c\u0430"]}}]',15,1,'2024-12-10 03:16:16.331411'), - (17,'4','Bnovo',1,'[{"added": {}}]',7,1,'2024-12-10 04:18:40.567772'), - (18,'4','Bnovo',2,'[{"changed": {"fields": ["\u041b\u043e\u0433\u0438\u043d", "\u041f\u0430\u0440\u043e\u043b\u044c"]}}]',7,1,'2024-12-10 04:22:39.182778'), - (19,'4','Test',1,'[{"added": {}}]',15,1,'2024-12-10 04:25:37.535780'), - (20,'4','andrew - Test',1,'[{"added": {}}]',13,1,'2024-12-10 04:25:43.910574'), - (21,'1','bot running',1,'[{"added": {}}]',21,1,'2024-12-10 07:04:41.982258'), - (22,'2','bot.check_pms',1,'[{"added": {}}]',21,1,'2024-12-10 07:07:20.515061'), - (23,'2','bot.check_pms',2,'[{"changed": {"fields": ["\u0424\u0443\u043d\u043a\u0446\u0438\u044f", "\u0410\u043a\u0442\u0438\u0432\u043d\u043e", "\u0414\u043d\u0438 \u043d\u0435\u0434\u0435\u043b\u0438"]}}]',21,1,'2024-12-10 08:14:49.799413'), - (24,'1','bot running',2,'[{"changed": {"fields": ["\u0424\u0443\u043d\u043a\u0446\u0438\u044f", "\u0414\u043d\u0438 \u043d\u0435\u0434\u0435\u043b\u0438", "\u0414\u043d\u0438 \u043d\u0435\u0434\u0435\u043b\u0438"]}}]',21,1,'2024-12-10 08:15:52.093648'), - (25,'1','andrew',2,'[{"changed": {"fields": ["\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d"]}}]',18,1,'2024-12-10 08:35:12.673349'); -INSERT INTO "django_content_type" ("id","app_label","model") VALUES (1,'admin','logentry'), - (2,'auth','permission'), - (3,'auth','group'), - (4,'auth','user'), - (5,'contenttypes','contenttype'), - (6,'sessions','session'), - (7,'pms_integration','pmsconfiguration'), - (8,'pms_integration','pmsintegrationlog'), - (9,'hotels','apiconfiguration'), - (10,'hotels','fraudlog'), - (11,'hotels','guest'), - (12,'hotels','reservation'), - (13,'hotels','userhotel'), - (14,'hotels','apirequestlog'), - (15,'hotels','hotel'), - (16,'users','localuseractivitylog'), - (17,'users','useractivitylog'), - (18,'users','user'), - (19,'users','notificationsettings'), - (20,'users','userconfirmation'), - (21,'scheduler','scheduledtask'); -INSERT INTO "auth_permission" ("id","content_type_id","codename","name") VALUES (1,1,'add_logentry','Can add log entry'), - (2,1,'change_logentry','Can change log entry'), - (3,1,'delete_logentry','Can delete log entry'), - (4,1,'view_logentry','Can view log entry'), - (5,2,'add_permission','Can add permission'), - (6,2,'change_permission','Can change permission'), - (7,2,'delete_permission','Can delete permission'), - (8,2,'view_permission','Can view permission'), - (9,3,'add_group','Can add group'), - (10,3,'change_group','Can change group'), - (11,3,'delete_group','Can delete group'), - (12,3,'view_group','Can view group'), - (13,4,'add_user','Can add user'), - (14,4,'change_user','Can change user'), - (15,4,'delete_user','Can delete user'), - (16,4,'view_user','Can view user'), - (17,5,'add_contenttype','Can add content type'), - (18,5,'change_contenttype','Can change content type'), - (19,5,'delete_contenttype','Can delete content type'), - (20,5,'view_contenttype','Can view content type'), - (21,6,'add_session','Can add session'), - (22,6,'change_session','Can change session'), - (23,6,'delete_session','Can delete session'), - (24,6,'view_session','Can view session'), - (25,7,'add_pmsconfiguration','Can add PMS система'), - (26,7,'change_pmsconfiguration','Can change PMS система'), - (27,7,'delete_pmsconfiguration','Can delete PMS система'), - (28,7,'view_pmsconfiguration','Can view PMS система'), - (29,8,'add_pmsintegrationlog','Can add Журнал интеграции PMS'), - (30,8,'change_pmsintegrationlog','Can change Журнал интеграции PMS'), - (31,8,'delete_pmsintegrationlog','Can delete Журнал интеграции PMS'), - (32,8,'view_pmsintegrationlog','Can view Журнал интеграции PMS'), - (33,9,'add_apiconfiguration','Can add Конфигурация API'), - (34,9,'change_apiconfiguration','Can change Конфигурация API'), - (35,9,'delete_apiconfiguration','Can delete Конфигурация API'), - (36,9,'view_apiconfiguration','Can view Конфигурация API'), - (37,10,'add_fraudlog','Can add Журнал мошенничества'), - (38,10,'change_fraudlog','Can change Журнал мошенничества'), - (39,10,'delete_fraudlog','Can delete Журнал мошенничества'), - (40,10,'view_fraudlog','Can view Журнал мошенничества'), - (41,11,'add_guest','Can add Гость'), - (42,11,'change_guest','Can change Гость'), - (43,11,'delete_guest','Can delete Гость'), - (44,11,'view_guest','Can view Гость'), - (45,12,'add_reservation','Can add Бронирование'), - (46,12,'change_reservation','Can change Бронирование'), - (47,12,'delete_reservation','Can delete Бронирование'), - (48,12,'view_reservation','Can view Бронирование'), - (49,13,'add_userhotel','Can add Пользователь отеля'), - (50,13,'change_userhotel','Can change Пользователь отеля'), - (51,13,'delete_userhotel','Can delete Пользователь отеля'), - (52,13,'view_userhotel','Can view Пользователь отеля'), - (53,14,'add_apirequestlog','Can add Журнал запросов API'), - (54,14,'change_apirequestlog','Can change Журнал запросов API'), - (55,14,'delete_apirequestlog','Can delete Журнал запросов API'), - (56,14,'view_apirequestlog','Can view Журнал запросов API'), - (57,15,'add_hotel','Can add Отель'), - (58,15,'change_hotel','Can change Отель'), - (59,15,'delete_hotel','Can delete Отель'), - (60,15,'view_hotel','Can view Отель'), - (61,16,'add_localuseractivitylog','Can add local user activity log'), - (62,16,'change_localuseractivitylog','Can change local user activity log'), - (63,16,'delete_localuseractivitylog','Can delete local user activity log'), - (64,16,'view_localuseractivitylog','Can view local user activity log'), - (65,17,'add_useractivitylog','Can add Журнал активности'), - (66,17,'change_useractivitylog','Can change Журнал активности'), - (67,17,'delete_useractivitylog','Can delete Журнал активности'), - (68,17,'view_useractivitylog','Can view Журнал активности'), - (69,18,'add_user','Can add Пользователь'), - (70,18,'change_user','Can change Пользователь'), - (71,18,'delete_user','Can delete Пользователь'), - (72,18,'view_user','Can view Пользователь'), - (73,19,'add_notificationsettings','Can add Способ оповещения'), - (74,19,'change_notificationsettings','Can change Способ оповещения'), - (75,19,'delete_notificationsettings','Can delete Способ оповещения'), - (76,19,'view_notificationsettings','Can view Способ оповещения'), - (77,20,'add_userconfirmation','Can add Подтверждение пользователя'), - (78,20,'change_userconfirmation','Can change Подтверждение пользователя'), - (79,20,'delete_userconfirmation','Can delete Подтверждение пользователя'), - (80,20,'view_userconfirmation','Can view Подтверждение пользователя'), - (81,21,'add_scheduledtask','Can add Задача'), - (82,21,'change_scheduledtask','Can change Задача'), - (83,21,'delete_scheduledtask','Can delete Задача'), - (84,21,'view_scheduledtask','Can view Задача'); -INSERT INTO "auth_user" ("id","password","last_login","is_superuser","username","last_name","email","is_staff","is_active","date_joined","first_name") VALUES (1,'pbkdf2_sha256$870000$0tWRKvUavKHjKmwWjWsfYc$mfqBdzr5TB74K1f9OHCI3w/66VZE7vY53MEpgUT73/4=','2024-12-10 06:59:08.529292',1,'trevor1985','','shadow85@list.ru',1,1,'2024-12-09 09:30:44.551380',''); -INSERT INTO "users_user" ("id","password","last_login","is_superuser","username","first_name","last_name","email","is_staff","is_active","date_joined","telegram_id","chat_id","role","confirmed") VALUES (1,'Andrey K. Tsoy','2024-12-09 09:34:41',1,'andrew','','','',0,1,'2024-12-09 09:34:27',556399210,556399210,'hotel_user',1); -INSERT INTO "users_notificationsettings" ("id","telegram_enabled","email_enabled","email","notification_time","user_id") VALUES (1,0,1,'a.choi@smartsoltech.kr','09:00:00',1); -INSERT INTO "hotels_hotel" ("id","name","created_at","api_id","pms_id") VALUES (1,'Golden Hills 3','2024-12-09 09:34:11.463934',NULL,1), - (2,'Golden Hills 4','2024-12-09 09:34:21.782571',NULL,2), - (3,'Как дома','2024-12-09 10:19:47.095457',NULL,3), - (4,'Test','2024-12-10 04:25:37.534927',NULL,4); -INSERT INTO "pms_integration_pmsintegrationlog" ("id","checked_at","status","message","hotel_id") VALUES (1,'2024-12-09 09:36:43.044421','error','Плагин для PMS Shelter PMS не найден.',2), - (2,'2024-12-09 09:38:09.595349','error','Плагин для PMS Shelter PMS не найден.',1), - (3,'2024-12-09 09:40:38.721678','error','Плагин для PMS Shelter PMS не найден.',2), - (4,'2024-12-09 10:07:44.968856','error','Плагин для PMS Shelter PMS не найден.',1); -INSERT INTO "hotels_userhotel" ("id","hotel_id","user_id") VALUES (1,1,1), - (2,2,1), - (3,3,1), - (4,4,1); -INSERT INTO "django_session" ("session_key","session_data","expire_date") VALUES ('wjcybubh02eoyth1e4pm9cgjc8c9rk1v','.eJxVjEEOwiAQRe_C2hBgpgVcuvcMZIBBqoYmpV0Z765NutDtf-_9lwi0rTVsnZcwZXEWWpx-t0jpwW0H-U7tNss0t3WZotwVedAur3Pm5-Vw_w4q9fqthxwtITBY9MlGtJ6ADZiiAdyQ7KhVyVgcGY7gEL1BVqMhH51iNl68P9F6N0w:1tKa6w:zJT5PgcESbBBG5gKuJsyfV6EOxizdevxDzI4QrGbLsc','2024-12-23 09:31:26.682056'), - ('zhfmhutrq2o277smded60dpbxurhyqrv','.eJxVjEEOwiAQRe_C2hBgpgVcuvcMZIBBqoYmpV0Z765NutDtf-_9lwi0rTVsnZcwZXEWWpx-t0jpwW0H-U7tNss0t3WZotwVedAur3Pm5-Vw_w4q9fqthxwtITBY9MlGtJ6ADZiiAdyQ7KhVyVgcGY7gEL1BVqMhH51iNl68P9F6N0w:1tKpiq:sIJzaN8dmZGRQlRUklQ9SNyhbyMuSLYMj-62RXTX5no','2024-12-24 02:11:36.624898'), - ('mz2w18vdzao572ss2ikr5tgj0w2rrbff','.eJxVjEEOwiAQRe_C2hBgpgVcuvcMZIBBqoYmpV0Z765NutDtf-_9lwi0rTVsnZcwZXEWWpx-t0jpwW0H-U7tNss0t3WZotwVedAur3Pm5-Vw_w4q9fqthxwtITBY9MlGtJ6ADZiiAdyQ7KhVyVgcGY7gEL1BVqMhH51iNl68P9F6N0w:1tKuD6:CESE5WIEOm7OzSRbIws0uyat8L3VjPyjOBTBeK_YzFY','2024-12-24 06:59:08.533787'); -INSERT INTO "pms_integration_pmsconfiguration" ("id","name","url","token","username","password","created_at","plugin_name","private_key","public_key") VALUES (1,'Shelter Golden Hills 3','https://pms.frontdesk24.ru/sheltercloudapi/Reservations/ByFilter','A0DD4B7F-0381-4096-B46E-D22F1A571996',NULL,NULL,'2024-12-09 09:32:31.348604','Shelter',NULL,NULL), - (2,'Shelter Golden Hills 4','https://pms.frontdesk24.ru/sheltercloudapi/Reservations/ByFilter','A0DD4B7F-0381-4096-B46E-D22F1A571996',NULL,NULL,'2024-12-09 09:33:10.514492','shelter',NULL,NULL), - (3,'Как дома / RealtyCalendar','https://realtycalendar.ru/api/v1/bookings/',NULL,NULL,NULL,'2024-12-10 03:07:04.218499','realtycalendar','a3669a349b9911cf774ec30ba9523582','b95e293cf07c84dfce44ec41bdced96a'), - (4,'Bnovo','https://online.bnovo.ru',NULL,'16798','a46da27476f02d1f','2024-12-10 04:18:40.567212','bnovo',NULL,NULL); -INSERT INTO "scheduler_scheduledtask" ("id","last_run","days","hours","minutes","months","active","task_name","function_path","weekdays") VALUES (1,NULL,'*','*','*','*',1,'bot running','bot.utils.bot_setup.setup_bot','[6]'), - (2,NULL,'*','*','*','*',1,'bot.check_pms','manage.main','2'); -COMMIT; diff --git a/req.txt b/req.txt deleted file mode 100644 index 89b7714f..00000000 --- a/req.txt +++ /dev/null @@ -1,25 +0,0 @@ -anyio==4.6.2.post1 -asgiref==3.8.1 -certifi==2024.8.30 -Django==5.1.4 -django-filter==24.3 -django-jazzmin==3.0.1 -django-jet==1.0.8 -et_xmlfile==2.0.0 -h11==0.14.0 -httpcore==1.0.7 -httpx==0.28.0 -idna==3.10 -numpy==2.1.3 -openpyxl==3.1.5 -pandas==2.2.3 -pillow==11.0.0 -python-dateutil==2.9.0.post0 -python-dotenv==1.0.1 -python-telegram-bot==21.8 -pytz==2024.2 -PyYAML==6.0.2 -six==1.17.0 -sniffio==1.3.1 -sqlparse==0.5.2 -tzdata==2024.2 diff --git a/requirements.txt b/requirements.txt index 095d2ade..e00e4155 100644 --- a/requirements.txt +++ b/requirements.txt @@ -52,3 +52,58 @@ ua-parser-builtins==0.18.0.post1 urllib3==2.2.3 user-agents==2.2.0 yarl==1.18.3 +ace_tools==0.0 +aiohappyeyeballs==2.4.4 +aiohttp==3.11.10 +aiosignal==1.3.1 +anyio==4.6.2.post1 +APScheduler==3.11.0 +asgiref==3.8.1 +async-timeout==5.0.1 +attrs==24.2.0 +certifi==2024.8.30 +charset-normalizer==3.4.0 +Django==5.1.4 +django-filter==24.3 +django-health-check==3.18.3 +django-jazzmin==3.0.1 +django-jet==1.0.8 +et_xmlfile==2.0.0 +exceptiongroup==1.2.2 +fpdf==1.7.2 +frozenlist==1.5.0 +geoip2==4.8.1 +h11==0.14.0 +httpcore==1.0.7 +httpx==0.28.0 +idna==3.10 +jsonschema==4.23.0 +jsonschema-specifications==2024.10.1 +maxminddb==2.6.2 +multidict==6.1.0 +numpy==2.1.3 +openpyxl==3.1.5 +pandas==2.2.3 +pathspec==0.12.1 +pillow==11.0.0 +propcache==0.2.1 +PyMySQL==1.1.1 +python-dateutil==2.9.0.post0 +python-dotenv==1.0.1 +python-telegram-bot==21.8 +pytz==2024.2 +PyYAML==6.0.2 +referencing==0.35.1 +requests==2.32.3 +rpds-py==0.22.3 +six==1.17.0 +sniffio==1.3.1 +sqlparse==0.5.2 +typing_extensions==4.12.2 +tzdata==2024.2 +tzlocal==5.2 +ua-parser==1.0.0 +ua-parser-builtins==0.18.0.post1 +urllib3==2.2.3 +user-agents==2.2.0 +yarl==1.18.3