« first day (250 days earlier)      last day (384 days later) » 

Anonymous
01:13
I pushed a hotfix for the utf8/utf16 codepages so that they 404 instead of 500
01:26
ok, i also manually modified the DB so all old answers are UTF-8.
@Mego should we have following users? I think with the gamification level that's appropriate for code challenges it would make sense
 
2 hours later…
03:36
user image
2
happy penguin for axtell
 
11 hours later…
Anonymous
14:13
@Downgoat I like it
20:18
high-tech axtell profile page mockup
@Mego how can we get the 10 most recent answers and posts. is the best way to run two queries + manual filter on python side or is there some SQL JOIN magic we can do
also we should probably 1) add a date_modified field 2) update the date_created field and identify the first revision to get original creation date
Anonymous
20:42
@Downgoat Date modified can be derived by looking at the last revision
Anonymous
@Downgoat user.posts.query.order_by(Post.date_created.desc()).limit(10).all(), similar for answers
Anonymous
Or do you want 10 latest submissions (post or answer), regardless of the type?
@Mego yeah this
Anonymous
Hmm...
Anonymous
20:47
You could do it with a union
Anonymous
select user_content.id, user_content,is_post, user_content.date_created from ((select id, 1 as is_post, date_created from posts where user_id = whatever) union (select id, 0 as is_post, date_created from answers where user_id = whatever)) as user_content order by user_content.date_created desc limit 10
Anonymous
Then just translate that into SQLAlchemy
22:25
@Mego how are we planning on doing privileges, are they going to be based on points?

« first day (250 days earlier)      last day (384 days later) »