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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esentity
3
- Version: 0.2.299
3
+ Version: 0.2.301
4
4
  Summary: Elasticsearch Entity Tools
5
5
  Home-page: https://slotmarks.com
6
6
  Author: Slotmarks
@@ -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,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "esentity"
3
- version = "0.2.299"
3
+ version = "0.2.301"
4
4
  description = "Elasticsearch Entity Tools"
5
5
  authors = ["Slotmarks <info@slotmarks.com>"]
6
6
  homepage = "https://slotmarks.com"
@@ -9,7 +9,7 @@ package_data = \
9
9
 
10
10
  setup_kwargs = {
11
11
  'name': 'esentity',
12
- 'version': '0.2.299',
12
+ 'version': '0.2.301',
13
13
  'description': 'Elasticsearch Entity Tools',
14
14
  'long_description': None,
15
15
  'author': 'Slotmarks',
@@ -1 +0,0 @@
1
- __version__ = '0.2.299'
File without changes