From d6ff721dec3b1c96e5afda943a680cd4dbac1121 Mon Sep 17 00:00:00 2001 From: topilski Date: Sun, 29 Sep 2019 03:59:13 -0400 Subject: [PATCH] Sources UP --- app/common | 2 +- app/service/subscribers_service_manager.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/common b/app/common index 694cf21..30e5a5b 160000 --- a/app/common +++ b/app/common @@ -1 +1 @@ -Subproject commit 694cf21806c396a97732aeb49a8f4b2784a1bb8c +Subproject commit 30e5a5b6ac2c7b9cb4c9bd226b9aadc132656298 diff --git a/app/service/subscribers_service_manager.py b/app/service/subscribers_service_manager.py index 7e04b95..e11898c 100644 --- a/app/service/subscribers_service_manager.py +++ b/app/service/subscribers_service_manager.py @@ -3,7 +3,7 @@ import logging from app.service.service_manager import ServiceManager from app.service.subscriber_client import SubscriberConnection -from app.common.subscriber.entry import Subscriber +from app.common.subscriber.entry import Subscriber, Device from app.common.constants import PlayerMessage from pyfastocloud.subscriber_client import Commands from pyfastocloud.client import make_utc_timestamp @@ -162,6 +162,7 @@ class SubscribersServiceManager(ServiceManager, IClientHandler): result = client.activate_device_success(cid, check_user.get_devices()) if not result: return False + client.info = check_user self.__activate_subscriber(client) return True @@ -193,6 +194,10 @@ class SubscribersServiceManager(ServiceManager, IClientHandler): client.login_fail(cid, 'Device not found') return False + if found_device.staus == Device.Status.NOT_ACTIVE: + found_device.staus = Device.Status.ACTIVE + found_device.save() + user_connections = self.get_user_connections_by_email(login) for conn in user_connections: if conn.device == found_device: