TruxtonFileIO addnote

From truxwiki.com
Revision as of 09:02, 3 February 2024 by Sam (talk | contribs) (→‎Sample)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This creates an investigator note associated with this file in Truxton. This will add a record to the [InvestigatorNote] table in the database.

Syntax

addnote(text: str) -> boolean

Return value

True if the note was associated with the file, False on failure.

Sample

import truxton

def main():
  t = truxton.create()
  file = t.getfileid("5ec2a123-74d6-5da7-0653-4e6800000000")

  file.addnote("We had the interns manually type these in.")

  return None

if __name__ == "__main__":
  sys.exit(main())