PageRenderTime 16ms CodeModel.GetById 7ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/api/requests_update_state.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 16 lines | 10 code | 5 blank | 1 comment | 0 complexity | e4667e33676d94cbc83e1ecdddd9166a MD5 | raw file
 1#!/usr/bin/env python
 2
 3
 4import os, sys, traceback
 5sys.path.insert( 0, os.path.dirname( __file__ ) )
 6from common import update
 7
 8try:
 9    data = {}
10    data[ 'update_type' ] = 'request_state'
11except IndexError:
12    print 'usage: %s key url' % os.path.basename( sys.argv[0] )
13    sys.exit( 1 )
14
15update( sys.argv[1], sys.argv[2], data, return_formatted=True )
16