Beispiel #1
0
def main():
  if len(sys.argv) != 2:
    print 'Invalid number of arguments. Usage: ghstreak [username].'
    return

  print ghstreak.get_streak_for_user(sys.argv[1])
Beispiel #2
0
def user_streak(username):
  return jsonify({
      'streak': ghstreak.get_streak_for_user(username)
    })