hasadna / OpenPress

Open Press Archive Repo
MIT License
2 stars 8 forks source link

Change issue_date value in DB #50

Open asafvala opened 10 years ago

asafvala commented 10 years ago

@yanivpas I couldn't find if we do this dynamically or not... It needs to be changed into YYYY-MM-DD

This is for ordering by date, and also some lookups

yanivpas commented 10 years ago

In the upload we didn't change it from it's XML format which is ISSUE_DATE="30/07/1863" if you want it to be in other format it should be done dynamically in the tornado server (it's not ideal but it will do for now)

asafvala commented 10 years ago

Should we convert date into python date object?

ashdnazg commented 9 years ago

It can't be changed in the tornado because the rows restriction happens in the db (which means sorting must happen there as well) If not changing how it is written, we may be able to change the field type.