Nov 10, 2015 15:39
Nov 10, 2015 15:36
we are all on the Discord in the Reactiflux
Nov 10, 2015 15:36
let me know if you still have issues
Nov 10, 2015 15:35
hard to tell without seeing the code
Nov 10, 2015 15:35
you will get them there
Nov 10, 2015 15:34
and try adding props.params on the Inbox for example
Nov 10, 2015 15:34
it's where I play around with Router
Nov 10, 2015 15:34
Nov 10, 2015 15:32
the latest is 1.0 final
Nov 10, 2015 15:30
do you get params in there?
Nov 10, 2015 15:29
just console.log(this.props)
Nov 10, 2015 15:28
do you get anything from this.props ?
Nov 10, 2015 15:28
can I see your component?
Nov 10, 2015 15:26
I thought you would just grab the pathname to do that
Nov 10, 2015 15:24
yo
Nov 10, 2015 15:24
sorry I thought you want to grab the pathname, the params can be found in the props: this.props.params.id
Nov 10, 2015 15:24
you need to specify it first: YourComponent.contextTypes = { location: React.PropTypes.object }
Nov 10, 2015 15:24
I would use the location which is on the context
Nov 10, 2015 15:24
which version of React Router are you using? I recommend upgrading to the 1.0 final. Named routes are gone in 1.0
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
May 2, 2015 17:48
appreciate the help :)
May 2, 2015 17:48
ok, thanks!
May 2, 2015 17:46
anyway, is there a way to have them merged?
May 2, 2015 17:45
doing for loop through couple of thousands results it's not really efficient, hence wanted this to be done on the db level
May 2, 2015 17:44
because if I query for multiple ids it would be a pain
May 2, 2015 17:43
@davidism because I'd like to have response from one (merged) table, so I don't need to do place[0].name and place[1].timestamp
May 2, 2015 17:41
@davidism this gives what I've done myself, the response is a tuple (<Place: 12345>, <PlaceScore: 12345>)
May 2, 2015 17:36
ok, thank you!
May 2, 2015 17:34
I managed to get to the point where the response gives me a tuple of Place and PlaceScore and they are correct, but not sure how I merge them into one. I'm using Session
May 2, 2015 17:32
thanks, so what's your solution then?
May 2, 2015 17:31
@davidism
May 2, 2015 17:31
can't I just do it in the query?
May 2, 2015 17:30
no
May 2, 2015 16:40
@davidism any idea of the solution for my sqlalchemy?
May 2, 2015 16:01
but the place_id matches the idin the Place model
May 2, 2015 16:00
there are no relationship in sql between those tables
May 2, 2015 15:59
May 2, 2015 15:53
is that a huge query in sqlalchemy then? @davidism
May 2, 2015 15:52
thanks
May 2, 2015 15:51
not sure if that make sense
May 2, 2015 15:51
so I have two tables, and I want to search for a thing by ID in the first one, but before I want to join the second table to the first one. the second one needs be joined by the same ID but with the latest timestamp
May 2, 2015 15:48
@davidism thanks, I guess this is what I was looking for
May 2, 2015 15:47
the first answer gives the sql query similar to the one i need to execute in sqlalchemy
May 2, 2015 15:47
3
Q: Join with DateTime and Latest Value from another Table

Devdatta TengsheI have a small database with the data from weather parameters being recorded daily. This is a Microsoft SQL Server 2008 express Database My tables are as follows: station (id, name, position) reading (station_id, timestamp, value) --station_id is the foreign key to id in station table I wa...

May 2, 2015 15:47
this is what I need to do in sqlalchemy basically
May 2, 2015 15:46
checking it now @davidism
May 2, 2015 15:37
anyone able to help?
May 2, 2015 15:37
got a quick question, need some help with subquery in sqlalchemy
May 2, 2015 15:37
hello Python!
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 9, 2014 11:28
I'm wondering how to specify nested JSON in mongoose schema, so I want to do something like:
hashtag(this will be changing): {
				watchers: {
					client1(this will be changing): [{ started(I want to add those): "timestamp", paused: "timestamp" }],
				}
			}
May 9, 2014 11:19
can anyone help me with mongoose schema?