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

pull/649/head
ccostan 6 years ago
parent f732fb37da
commit 19369a7c43

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.