esentity 0.2.292__tar.gz → 0.2.294__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.292 → esentity-0.2.294}/PKG-INFO +1 -1
- esentity-0.2.294/esentity/__init__.py +1 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/ext.py +15 -8
- {esentity-0.2.292 → esentity-0.2.294}/pyproject.toml +1 -1
- {esentity-0.2.292 → esentity-0.2.294}/setup.py +1 -1
- esentity-0.2.292/esentity/__init__.py +0 -1
- {esentity-0.2.292 → esentity-0.2.294}/esentity/api.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/encoder.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/filters.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/models.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/routes.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/tasks.py +0 -0
- {esentity-0.2.292 → esentity-0.2.294}/esentity/telegram.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.294'
|
|
@@ -519,19 +519,27 @@ class TopSlotsExtension(Extension):
|
|
|
519
519
|
def _render(self, args, caller=None):
|
|
520
520
|
logger.info('Top Slots IN Args: {0}'.format(args))
|
|
521
521
|
|
|
522
|
-
default = [
|
|
523
|
-
args = args[:
|
|
522
|
+
default = [[], 8, 4, False, True, [{'rating': {'order': 'desc'}}], 'slots_list']
|
|
523
|
+
args = args[:6] + default[len(args):] + args[6:]
|
|
524
524
|
|
|
525
525
|
logger.info('Top Slots OUT Args: {0}'.format(args))
|
|
526
526
|
|
|
527
|
-
|
|
527
|
+
providers = args[0]
|
|
528
528
|
count = int(args[1])
|
|
529
529
|
in_row = int(args[2])
|
|
530
530
|
random = bool(args[3])
|
|
531
531
|
show_provider = bool(args[4])
|
|
532
|
+
sorting = args[5]
|
|
533
|
+
template = args[6]
|
|
532
534
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
+
kwargs = {
|
|
536
|
+
'category': 'slot',
|
|
537
|
+
'_sort': sorting
|
|
538
|
+
}
|
|
539
|
+
if providers:
|
|
540
|
+
kwargs['software'] = providers
|
|
541
|
+
|
|
542
|
+
slots, _ = Page.get(
|
|
535
543
|
is_active=True,
|
|
536
544
|
is_searchable=True,
|
|
537
545
|
is_redirect=False,
|
|
@@ -539,11 +547,10 @@ class TopSlotsExtension(Extension):
|
|
|
539
547
|
_source=True,
|
|
540
548
|
_count=count,
|
|
541
549
|
_random=random,
|
|
542
|
-
|
|
543
|
-
software=provider,
|
|
550
|
+
**kwargs
|
|
544
551
|
)
|
|
545
552
|
|
|
546
|
-
t = current_app.jinja_env.get_template('_ext-
|
|
553
|
+
t = current_app.jinja_env.get_template(f'_ext-{template}.html')
|
|
547
554
|
s = t.render(
|
|
548
555
|
slots=slots,
|
|
549
556
|
in_row=in_row,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.2.292'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|