Skip to content

Commit

Permalink
changes tha macro used in get_all_notes to return a list of strings, …
Browse files Browse the repository at this point in the history
…not one big string
  • Loading branch information
harryob committed Sep 8, 2023
1 parent 5d5f73d commit 06a94f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/entities/player_note.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ BSQL_PROTECT_DATUM(/datum/entity/player_note)
/// Returns all notes associated with a CKEY, structured as a list of strings.
/proc/get_all_notes(player_ckey)
for(var/datum/view_record/note_view/note in DB_VIEW(/datum/view_record/note_view, DB_COMP("player_ckey", DB_EQUALS, player_ckey)))
LAZYADDASSOC(., "[note.note_category]", "\"[note.text]\", by [note.admin_ckey] ([note.admin_rank]) on [note.date] ([note.round_id])")
LAZYADDASSOCLIST(., "[note.note_category]", "\"[note.text]\", by [note.admin_ckey] ([note.admin_rank]) on [note.date] ([note.round_id])")

0 comments on commit 06a94f2

Please sign in to comment.