• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
No Document.

src/b/a/backchatter-HEAD/backchatter/main/management/commands/tally_session.py   backchatter(Download)
                if new:
                    score.total=player.tally(session,copy.copy(terms))
                    score.save()
                elif session.end > datetime.utcnow() - timedelta(seconds=300):
                    new_score = player.tally(session,copy.copy(terms))
                    if new_score > score.total:
                        score.total = new_score

src/b/a/backchatter-HEAD/backchatter/main/management/commands/take_bets.py   backchatter(Download)
 
        game = Game.objects.all().order_by('-start')[0]
 
        if game.start < datetime.utcnow():
            signup_message = "Welcome to BackChatter! To play pick 3 words you think will be tweeted at #GDC and #GDC10. Send this tweet \"d bcgame word1 word2 word3\""
        else:
            signup_message = "Welcome to BackChatter! To play pick 3 words you think will be tweeted at #GDC and #GDC10. Betting starts at %s" % (game.start+timedelta(hours=10)).strftime("%H:%M EST %d/%m/%y")