fidoandfido / blackswan

Blackswan Stock Game
Other
2 stars 0 forks source link

Wrong graphs beings rendered #25

Closed fidoandfido closed 13 years ago

fidoandfido commented 13 years ago

Wrong graph is being rendered at times. This is probably because of the way the graphs are being stored as a property of the session.

To fix this, the graph should be stored with a unique id (doesnt have to be GUID - perhaps just the company name would be enough?) when it is added to the session.

By adding a time stamp, it may even be possible to cache graphs, but this way may lead to madness - disposal issues will have to be dealt with for possibly little performance gain.

fidoandfido commented 13 years ago

Fixed - attribute now requires company name. This will prevent graphs from 'crossing' sessions.