Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/nano_banana_dashboard/nano_banana_dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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}

Expand Down Expand Up @@ -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']
Expand Down