country fix
This commit is contained in:
@@ -46,17 +46,19 @@ class OfficeCountryService(BaseService):
|
||||
val_type = data.get('val_type', '')
|
||||
country_uid = data.get('country_uid', '')
|
||||
code = data.get('code', '')
|
||||
val = data.get('val', '')
|
||||
val = data.get('val', 0)
|
||||
country_result=[]
|
||||
if val_type == 'STATUS':
|
||||
country_result = Country.set_country_status(country_uid, code, val)
|
||||
with db.session.begin():
|
||||
if val_type == 'STATUS':
|
||||
country_result = Country.set_country_status(country_uid, code, val)
|
||||
|
||||
if val_type == 'SIGNUP':
|
||||
country_result = Country.set_country_signup(country_uid, code, val)
|
||||
if val_type == 'SIGNUP':
|
||||
country_result = Country.set_country_signup(country_uid, code, val)
|
||||
|
||||
|
||||
account_result = {
|
||||
"set_country_data":country_result,
|
||||
"set_country_data":country_result.id,
|
||||
"value": val,
|
||||
"message": "Updated"
|
||||
}
|
||||
logger.info('RETURN API::get office account view')
|
||||
|
||||
Reference in New Issue
Block a user