def record(to_number): spam = spam.get_next() log.info("Showing spam %s" %(spam["spam_id"])) return render_template('record.html', spam=spam, to_number=to_number)
def next_spam(): return json.dumps([spam.get_next()])