toot="Curious cat question from {}: \"{}\"<br />My answer: {}\nView online at https://curiouscat.me/{}/post/{}".format(sender,post['comment'],post['reply'],row['cc'],post['id'])#TODO: what if this is over 500 characters?
c.execute("UPDATE data SET last_check = %s, time_between_checks = %s, latest_post = %s",(t,cfg['min_time_between_checks'],j['posts'][0]['timestamp']))
else:
#we checked, and they haven't made a post
tbc=int(row['time_between_checks'])+1
iftbc>int(cfg['max_time_between_checks']):
tbc=cfg['max_time_between_checks']
c.execute("UPDATE data SET last_check = %s, time_between_checks = %s",(t,tbc))