esentity 0.2.299__tar.gz → 0.2.301__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.301}/PKG-INFO +1 -1
- esentity-0.2.301/esentity/__init__.py +1 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/api.py +18 -1
- {esentity-0.2.299 → esentity-0.2.301}/esentity/ext.py +3 -0
- {esentity-0.2.299 → esentity-0.2.301}/pyproject.toml +1 -1
- {esentity-0.2.299 → esentity-0.2.301}/setup.py +1 -1
- esentity-0.2.299/esentity/__init__.py +0 -1
- {esentity-0.2.299 → esentity-0.2.301}/esentity/encoder.py +0 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/filters.py +0 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/models.py +0 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/routes.py +0 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/tasks.py +0 -0
- {esentity-0.2.299 → esentity-0.2.301}/esentity/telegram.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.301'
|
|
@@ -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):
|
|
@@ -2716,6 +2716,9 @@ class SitemapExtension(Extension):
|
|
|
2716
2716
|
locale=g.language,
|
|
2717
2717
|
_source=['category', 'path', 'title', 'alias', 'publishedon', 'tags', 'locale_available'],
|
|
2718
2718
|
_all=True,
|
|
2719
|
+
_exclude_params={
|
|
2720
|
+
'provider_tags': ['closed'],
|
|
2721
|
+
},
|
|
2719
2722
|
_sort=[
|
|
2720
2723
|
{'title.keyword': {'order': 'asc'}}
|
|
2721
2724
|
]
|
|
@@ -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
|