Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1.  
  2. # the modern version for a modern world
  3. def getSomeRawData_2(iRawData, guid, sortOrder):
  4.  
  5.     print "uasjsjakd"  
  6.  
  7.     posts = iRawData.getOrderedPosts(guid, startTime=START_TIME, stopTime=STOP_TIME, sortOrder = sortOrder)
  8.     allPostsList = list()
  9.     postsToReturn = list()
  10.     # fill list with 600 posts or all the posts if total posts of guid < 600
  11.     for _ in range(600):
  12.         try:
  13.             post = posts.next()
  14.             allPostsList.append(post)
  15.             #allPostsList.append(posts.next())
  16.         except StopIteration:
  17.             break
  18.     if len(allPostsList) == 0:
  19.         return []
  20.  
  21.     # get starhttps://pastebin.com/UsZ2Lt5P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement