Hi there!

Bit confused about the data stores ability to take in data.

i'm trying to upload a data value in the format, %m/%d/%Y, but i keep
getting the error message: ValueError: time data 'Date' does not match
format '%m/%d/%Y'.

My CSV file contains data in this exact same format.

here is the main bit of my loader file.

class loaders(bulkloader.Loader):
  def __init__(self):
    bulkloader.Loader.__init__(self, 'New_aviva',
                               [('Date',lambda x:
datetime.datetime.strptime(x, '%m/%d/%Y').date()),
                                ('Open', int),
                                ('high', int),
                                ('low', int),
                                ('close', int),
                                ('volume', int),
                                ('adjclose', int)
                               ])

Although I have managed to fix this error...if I take in the date
property as a STRING, it works just fine, but then I have issues with
the GQL in the data store, as I would not be able to access them in
any order.

So i need to take in date as a DATE value.

Guidance appriciated.






-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to