Pending Earnings/Hits Script ( Find out your TOTAL Pending HITs worth )

Discussion in 'Scripts' started by Playa_hamm420, Apr 21, 2012.

  1. Playa_hamm420

    Joined:
    Apr 21, 2012
    Messages:
    930
    Likes Received:
    0
    http://userscripts.org/scripts/show/111134

    Script Summary: Adds a pending earnings item to mturk dashboard

    This script will add up all the pending Approval HITs you have. It might have to go back as far as 30 days so the only time this script actually runs is if you click on it. You then might have to wait a long time if you have a lot of pending HITs.

    I added some logic to prevent a possible race condition where a HIT is approved as I'm trying to add them up. The old code could of ended up in an infinite loop looking for a pending HIT that is no longer pending.

    Removed debugging alerts.

    Cleaned up logic for getNumberOfPending()

    Modifed getNumberOfPending() again, also added an error message to find out if this is the location of the problem some people are having

    Added a few debugging alerts, note this version is for testing only.

    Removed the debugging alerts.

    Finally fixed the problem where some people were not getting anything for pending Earnings. It was in the proces_status_page() when I was trying to work with links[0]
    and this row didn't have a link.

    10/4/2011
    Modified script to keep a snapshot of the last time it was called and then only process
    detailed status pages if the pending HITs for that day have changed from the previous time we were invoked. This should cut way down on the page request exceeded errors and speed up the script.

    10/29/2011
    Changed the expiration date on the pendingEarnings cookie so it now persists for 30 days instead of 1.

    11/03/2011 The change above created another bug if there were now no pending HITs it didn't update the cookie to zero. Since no real turker ever has no pending HITs probably
    nobody noticed ;)


    * Did not see the posted already *
     
  2. Playa_hamm420

    Joined:
    Apr 21, 2012
    Messages:
    930
    Likes Received:
    0
    It was kinda slow adding up just my 5 days worth but.. Its neato it works!

    Pending HITs $39.94

    Refresh your Dashboard page and it shows there. * does take a few for it to show the total so Click on it once and let it do its work then just refresh or wait for it to show yer pending $$ *
     
  3. acustic

    acustic User

    Joined:
    Mar 29, 2012
    Messages:
    166
    Likes Received:
    0
  4. Playa_hamm420

    Joined:
    Apr 21, 2012
    Messages:
    930
    Likes Received:
    0
    ... Its been a long day ... :p
     
  5. riazthemturkhelper

    Joined:
    Jan 14, 2012
    Messages:
    1,640
    Likes Received:
    0
    This is like a double post.
     
  6. Playa_hamm420

    Joined:
    Apr 21, 2012
    Messages:
    930
    Likes Received:
    0
    Thanks Capt. Obvious
     
  7. Blazed

    Blazed User

    Joined:
    Sep 21, 2012
    Messages:
    905
    Likes Received:
    0
    I can't seem to find this script. Can someone provide me with a copy?
     
  8. Blazed

    Blazed User

    Joined:
    Sep 21, 2012
    Messages:
    905
    Likes Received:
    0
    #9 Blazed, Nov 11, 2012
    Last edited by a moderator: Nov 11, 2012

Share This Page