Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def csv( *args ):
- out = ''
- for arg in args:
- out += '"' + str( arg ) + '",'
- return out[ :len( out ) - 1 ] + '\n'
- #Returns a CSV string with data for jobs.
- def getJobData():
- for j in Job.objects.all():
- jmFields = {}
- ##Code here may or may not put stuff in jmFields
- out += csv( j.id, j.endTimestamp - j.startTimestamp, jmFields.get( 'open', '' ), jmFields.get( 'viewport', '' ),
- jmFields.get( 'export', '' ), jmFields.get( 'complexity', '' ), j.status, j.statusData, j.job_type, j.user_data )
Add Comment
Please, Sign In to add comment