esentity 0.2.299__tar.gz → 0.2.300__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {esentity-0.2.299 → esentity-0.2.300}/PKG-INFO +1 -1
- esentity-0.2.300/esentity/__init__.py +1 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/api.py +18 -1
- {esentity-0.2.299 → esentity-0.2.300}/pyproject.toml +1 -1
- {esentity-0.2.299 → esentity-0.2.300}/setup.py +1 -1
- esentity-0.2.299/esentity/__init__.py +0 -1
- {esentity-0.2.299 → esentity-0.2.300}/esentity/encoder.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/ext.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/filters.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/models.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/routes.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/tasks.py +0 -0
- {esentity-0.2.299 → esentity-0.2.300}/esentity/telegram.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.300'
|
|
@@ -2054,6 +2054,23 @@ class ApiContentComplaintsGet(Resource):
|
|
|
2054
2054
|
]
|
|
2055
2055
|
)
|
|
2056
2056
|
|
|
2057
|
+
contacts = {}
|
|
2058
|
+
casino = Page.get_one(_id=_doc['casino_id'])
|
|
2059
|
+
if casino:
|
|
2060
|
+
contacts = {
|
|
2061
|
+
'casino_operator': casino.operator,
|
|
2062
|
+
'casino_support': casino.support_email,
|
|
2063
|
+
'casino_affiliate': casino.affiliate,
|
|
2064
|
+
'casino_affiliate_contact': casino.affiliate_contact,
|
|
2065
|
+
'casino_affiliate_email': casino.affiliate_email,
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
if casino.owner:
|
|
2069
|
+
actor = Actor.get_one(_id=casino.owner)
|
|
2070
|
+
if actor:
|
|
2071
|
+
contacts['manager_email'] = actor.username
|
|
2072
|
+
contacts['manager_messenger'] = actor.skype
|
|
2073
|
+
|
|
2057
2074
|
def process_casino(item):
|
|
2058
2075
|
return {'id': item['_id'], 'title': item['_source']['title']}
|
|
2059
2076
|
|
|
@@ -2077,7 +2094,7 @@ class ApiContentComplaintsGet(Resource):
|
|
|
2077
2094
|
'subject_list': current_app.config['COMPLAINT_SUBJECTS'],
|
|
2078
2095
|
}
|
|
2079
2096
|
|
|
2080
|
-
return {'ok': True, 'options': _opts, 'complaint': _doc}
|
|
2097
|
+
return {'ok': True, 'options': _opts, 'complaint': _doc, 'contacts': contacts}
|
|
2081
2098
|
|
|
2082
2099
|
|
|
2083
2100
|
class ApiContentComplaintsSave(Resource):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.299'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|