Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3283734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:04:31+00:00 2026-05-17T20:04:31+00:00

I am trying to get the most recent data item from the datastore. I

  • 0

I am trying to get the most recent data item from the datastore.
I am trying to apply the method as explained here but I am getting the object <__main__.Rep object at 0x075F1730> not the item. Can anyone explain what I am doing wrong?

The Model is:

class Rep(db.Model):
    sent = db.StringProperty()
    time = db.DateTimeProperty(auto_now_add=True)

This is the handler:

class Repeater(webapp.RequestHandler):
    def get(self):        
        reps = Rep()
        reps.sent = self.request.get('sentence')
        reps.put()

        s = self.request.get('sentence')             

        query = reps.all()
        last = query.order('-time').get()
        sentences = query

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:04:32+00:00Added an answer on May 17, 2026 at 8:04 pm

    I don’t see anything wrong at all.

    <__main__.Rep object at 0x075F1730> is presumably an instance of your Rep class, as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to get the most popular productID from my MSSQL Database. This
I get a strange error message when trying to read non-ascii from the datastore:
I'm trying to figure out how to get the most recent latitude and longitude
I´m trying to get the top most element within view of a UIWebView. Ive
I'm trying to get background worker functioning in the most basic way with a
So I'm trying to get the a list of the most popular events by
I am trying to get the unique ID for the most recently added value
I am trying to get comp1's value in the most simple way in C#.
I'm trying get the visible portion of UIImage from an UIImageView . UIImageView takes
Here are some models I am trying to load data for: class School(models.Model): name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.