TruxtonFileIO addnote

From truxwiki.com
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())