diff --git a/lib/nano_banana_dashboard/nano_banana_dashboard.rb b/lib/nano_banana_dashboard/nano_banana_dashboard.rb index 18d02bb..e0a2fa9 100644 --- a/lib/nano_banana_dashboard/nano_banana_dashboard.rb +++ b/lib/nano_banana_dashboard/nano_banana_dashboard.rb @@ -99,6 +99,7 @@ def current_prompt_hash def cache_key_inputs [ + current_date, settings.slice( 'style_prompt', 'style_custom', 'custom_text', 'data_instructions', 'aspect_ratio', 'model', 'color_palette' @@ -155,6 +156,9 @@ def build_prompt(data) The data is the reason this image exists — it must be prominent, legible, and accurate. But it should feel like it belongs in the world, not pasted on top. #{scene_section} + Today's date: #{current_date} + Use this as today's date. If source data contains a different date, the date above takes priority. + Available data — each key is a data source name: #{data.to_json} @@ -265,6 +269,12 @@ def user_friendly_error(error) end end + # --- Current Date --- + + def current_date + user.datetime_now.strftime('%Y-%m-%d (%A)') + end + # --- Settings --- def api_key = settings['api_key']