Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COLLECTION_YESTERDAY
- COLLECTION_NOW
- COLLECTION_TOMORROW
- MyClass(database[COLLECTION_NOW])
- def DoMyClass(database, when='now'):
- times {
- 'now': COLLECTION_NOW,
- ...
- }
- collection = database[times[when]]
- # Do something
Add Comment
Please, Sign In to add comment