Skip to content

Instantly share code, notes, and snippets.

@jdunne-kaplan
Created December 4, 2014 02:42
Show Gist options
  • Select an option

  • Save jdunne-kaplan/7685566093a59912e783 to your computer and use it in GitHub Desktop.

Select an option

Save jdunne-kaplan/7685566093a59912e783 to your computer and use it in GitHub Desktop.
List talkbacks
import models
from lib.talkback import Talkback
tbs = Talkback.query(Talkback.opaque_id == "ec18060e-f4e4-4246-bc29-3f5579611f09").order(-Talkback.created_at).fetch()
for tb in reversed(list(tbs)):
print ""
print tb.submitted_by, tb.created_at
print "Q: " + tb.submission.strip()
if tb.response:
print "A: " + tb.response.strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment