You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a score is stored persistently using the Scorekeeper subclass's name, but this could lead to a collision if two different projects were sharing the same environment and had Scorekeepers with the same class name.
An example:
Project A
class MyScoreKeeper(Scorekeeper):
namespace = project_a
Project B
class MyScoreKeeper(Scorekeeper):
namespace = project_b
The text was updated successfully, but these errors were encountered:
Add a new attribute "namespace" on the Scorekeeper object which
forces a scorekeeper object to namespace its own name in the shared
data store.
Also, change _seconds_since_last_score to a property.
Closes#2
Currently, a score is stored persistently using the Scorekeeper subclass's name, but this could lead to a collision if two different projects were sharing the same environment and had Scorekeepers with the same class name.
An example:
Project A
Project B
The text was updated successfully, but these errors were encountered: