Updated Joke Logic with a Simplier (I think) If Statement.

This commit is contained in:
ccostan 2019-09-18 16:31:17 -04:00
parent f732fb37da
commit 19369a7c43
2 changed files with 4 additions and 4 deletions

View File

@ -229,11 +229,11 @@ tweet_engine_setup:
{{ images[topic]|random }}
{%- endmacro -%}
{% if topic == "joke" -%}
{% if pick == "joke" -%}
{{ "\"/config/www/custom_ui/floorplan/images/branding/jokes/Tweet_" ~ range(1, 72) | random ~ ".png\"" }}
{%- else -%}
{{ image(pick) }}
{%- endif -%}
{%- else -%}
{{ image(pick) }}
{%- endif -%}
tweet_engine_image:
sequence:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 42 KiB