Author Topic: Need help to Query time submission  (Read 4040 times)

roberty

  • Jr. Member
  • **
  • Posts: 5
Need help to Query time submission
« on: August 30, 2014, 03:18:33 AM »
Hi,

      I am trying to get a query of all the submission times on qube as a side tool to help our wranglers.  Normally I would do this for other query types, such as users:

qbList = []
qbArtist = raw_input("Which artist: ")
jobs = qb.jobinfo(filters={'user':qbArtist})

for item in jobs:
    qbList.append(item['id'])

print qbList

      I am using python and what qb.jobinfo returns is a dict.  But I can't seem to find the API command to query the time submission.  A little help from the community would be appreciated!

Thanks,
Robert

jburk

  • Administrator
  • *****
  • Posts: 493
Re: Need help to Query time submission
« Reply #1 on: August 30, 2014, 03:28:26 AM »
Try accessing the job['timesubmit'] value. It should be in seconds as unix epoch time.

roberty

  • Jr. Member
  • **
  • Posts: 5
Re: Need help to Query time submission
« Reply #2 on: August 30, 2014, 05:25:13 PM »
Hi,

      This worked, much appreciated!

From,
Robert Yeh